public IActionResult UpdateTodo(TodoAssigneeViewModel model) { todoRepository.UpdateTodo(model.Todo); return(RedirectToAction("Index")); }
public TodoController(ITodoRepository todoRepo, IAssigneeRepository assigneeRepo) { todoRepository = todoRepo; assigneeRepository = assigneeRepo; TodoAssigneeViewModel = new TodoAssigneeViewModel(); }