Skip to content

Instantly share code, notes, and snippets.

@cpanuphan
Last active September 19, 2018 02:15
Show Gist options
  • Save cpanuphan/75263afca07f0adff30af7b014fe0361 to your computer and use it in GitHub Desktop.
Save cpanuphan/75263afca07f0adff30af7b014fe0361 to your computer and use it in GitHub Desktop.
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using TodoApi.Models;
namespace TodoApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class TodoController : ControllerBase
{
private readonly TodoContext _context;
public TodoController(TodoContext context)
{
_context = context;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment