- Jonah Hill
- James Franco
- Danny McBride
- He's like kinda better than Craig Robinson
- Craig Robinson
- The Office
- Wasn't in any shit Seth Rogen films? But he was
- Seth Rogen
- The worst
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 |
{ | |
"Name" : "TestTomato", | |
"Origin" : "3095", | |
"Tastes" : "2" | |
} |
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
{ | |
app.UseCors(options => options.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod().AllowCredentials()); | |
loggerFactory.AddConsole(Configuration.GetSection("Logging")); | |
loggerFactory.AddDebug(); | |
app.UseMvc(); | |
} |
using Microsoft.EntityFrameworkCore; | |
namespace TomatoAPI | |
{ | |
public class TomatoDb : DbContext | |
{ | |
// Reference our tomato table using this | |
public DbSet<Tomato> Tomatos { get; set; } | |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
{ |
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace TomatoAPI | |
{ | |
public class Tomato | |
{ | |
[Key] | |
public int Id { get; set; } | |
[Required] |
{ | |
"dependencies": { | |
"Microsoft.NETCore.App": { | |
"version": "1.1.0", | |
"type": "platform" | |
}, | |
"Microsoft.AspNetCore.Mvc": "1.1.0", | |
"Microsoft.AspNetCore.Routing": "1.1.0", | |
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0", | |
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0", |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
namespace TomatoAPI.Controllers | |
{ | |
[Route("api/[controller]")] | |
public class ValuesController : Controller |
{ | |
// Python Single File Task Runner for VS Code | |
// Written by Alex Billson (pielegacy) | |
"version": "0.1.0", | |
"command": "python", | |
"isShellCommand": true, | |
"args": [ | |
"${file}" | |
], | |
"showOutput": "always" |