Exemple #1
0
 private IEnumerable <TaskResponseDto> GetTask(CreateTaskDto task)
 {
     return(_storage.GetTasks(new TaskQuerySearch
     {
         Name = task.Name,
         Project = task.Project
     }));
 }
Exemple #2
0
        public TaskResponseDto CreateTask(CreateTaskDto task)
        {
            if (!GetTask(task).Any())
            {
                _storage.CreateTask(task);
            }

            return(GetTask(task).Single());
        }