public async Task CreateTaskChangeAsync(TaskChangeDto taskChange) { var taskChangeEntity = _mapper.Map <TaskChangeEntity>(taskChange); await _taskChangeRepository.InsertAsync(taskChangeEntity); await _taskChangeRepository.SaveAsync(); }
private void ResetTaskChange() { _newTaskDto = new TaskDto(); _taskChangeDto = new TaskChangeDto(); }
public async Task <ActionResult> CreateTaskChangeAsync(TaskChangeDto taskChange) { await _taskChangeService.CreateTaskChangeAsync(taskChange); return(Ok()); }