Beispiel #1
0
 public ActionResult Create(TaskDto task)
 {
     var command = new CreateTaskCommand(task.Id, task.Description, task.Due);
     return Execute(command) ?? View(task);
 }
Beispiel #2
0
 public TasksViewModel(TaskDto[] tasks)
 {
     _tasks = tasks;
 }