Exemplo n.º 1
0
 public int PutTaskDetail(int id, Services.TaskDetail taskDetail)
 {
     if (id != taskDetail.Id)
     {
         return(0);
     }
     _service.UpdateTask(taskDetail);
     return(_service.SaveAsync(taskDetail).Id);
 }
Exemplo n.º 2
0
 public int PostTaskDetail([FromBody] Services.TaskDetail taskDetail)
 {
     _service.AddNewTask(taskDetail);
     return(_service.SaveAsync(taskDetail).Id);
 }