Ejemplo n.º 1
0
 public IActionResult overdueExtend([FromBody] TaskDTO model)
 {
     _updateTaskUseCase.Execute(_mapper.Map <TaskDTO, TaskModel.Task>(model), model.Observation, model.overdureTime, model.TaskID);
     return(new OkObjectResult(true));
 }
Ejemplo n.º 2
0
 public IActionResult Update([FromBody] TaskDTO model)
 {
     return(new ObjectResult(_updateTaskUseCase.Execute(_mapper.Map <TaskDTO, TaskModel.Task>(model))));
 }
Ejemplo n.º 3
0
 public IActionResult Delete([FromBody] TaskDTO model)
 {
     _deleteTaskUseCase.Execute(model.TaskID);
     return(new OkObjectResult(model));
 }