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