public IActionResult TimeSpent(String id) { var task = TodoProcessor.LoadTodo(id).Result; var timespent = new Models.Timespent(); timespent.ID = task._id; return(View(timespent)); }
public IActionResult UpdateTodo(String id) { var task = TodoProcessor.LoadTodo(id).Result; var todo = new Models.TodoModel(); todo.ID = task._id; todo.Title = task.title; todo.Desc = task.desc; todo.Estimate = task.estimate; return(View(todo)); }
public IActionResult Todo(String?id) { if (id == null) { Index(); } var task = TodoProcessor.LoadTodo(id); return(View(task.Result)); }