public async Task <ActionResult <TodoTask> > GetTodoTask(int id) { //var todoTask = await _context.TodoTask.FindAsync(id); var todoTask = await _repo.GetTodoTaskById(id); if (todoTask == null) { return(NotFound()); } return(todoTask); }
public async Task <ActionResult <TodoTask> > GetTodoTask(int id) { //var todoTask = await _context.TodoTask.FindAsync(id); var todoTask = await _repo.GetTodoTaskById(id); if (todoTask == null) { return(NotFound()); } return(todoTask); }