Last active
September 19, 2018 02:15
-
-
Save cpanuphan/75263afca07f0adff30af7b014fe0361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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