public Task AddTask(HttpRequestMessage requestMessage, NewTaskV2 newTask) { return(new Task { Subject = "In v2, newTask.Subject = " + newTask.Subject }); }
public Task AddTask(HttpRequestMessage requestMessage, NewTaskV2 newTask) { return(new Task { Subject = string.Format("In v2, newTask.Subject = {0}", newTask.Subject) }); }
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); }