public void AddTask(TaskDTO task) { var taskEntity = task.ToDTO <Task>(); _taskRepository.AddTask(taskEntity); }