Exemplo n.º 1
0
 public Task AddTask(HttpRequestMessage requestMessage, NewTaskV2 newTask)
 {
     return(new Task
     {
         Subject = "In v2, newTask.Subject = " + newTask.Subject
     });
 }
Exemplo n.º 2
0
 public Task AddTask(HttpRequestMessage requestMessage, NewTaskV2 newTask)
 {
     return(new Task
     {
         Subject = string.Format("In v2, newTask.Subject = {0}", newTask.Subject)
     });
 }
Exemplo n.º 3
0
        public IHttpActionResult AddTask(HttpRequestMessage requestMessage, NewTaskV2 newTask)
        {
            var task = _addTaskMaintenanceProcessor.AddTask(newTask);

            var result = new TaskCreatedActionResult(requestMessage, task);

            return(result);
        }
        public Task AddTask(NewTaskV2 newTask)
        {
            var taskEntity = _autoMapper.Map <Data.Entities.Task>(newTask);

            _queryProcessor.AddTask(taskEntity);

            var task = _autoMapper.Map <Task>(taskEntity);

            _taskLinkService.AddLinks(task);

            return(task);
        }