Example #1
0
 public async Task <TaskModel> PostTask(TaskModel task)
 {
     return(TaskModel.FromRecord(await _taskRepository.UpdateAsync(task.ToRecord())));
 }
Example #2
0
 public async Task <TaskModel> DeleteTask(int id)
 {
     return(TaskModel.FromRecord(await _taskRepository.DeleteAsync(id)));
 }
Example #3
0
 public async Task <TaskModel> GetTask(int id)
 {
     return(TaskModel.FromRecord(await _taskRepository.GetAsync(id)));
 }