public HttpResponseMessage DeleteImage([FromBody] Entities.Application.Task task) { return(Request.CreateResponse(HttpStatusCode.OK, task.DeleteImage())); }
public async Task <HttpResponseMessage> AddImageToTask([FromBody] Entities.Application.Task task) { return(await System.Threading.Tasks.Task.Run(() => { return Request.CreateResponse(HttpStatusCode.OK, task.AddImage()); })); }
public HttpResponseMessage UpateTaskStatus(Entities.Application.Task t) { return(Request.CreateResponse(HttpStatusCode.OK, t.UpdateStatus())); }
//public HttpResponseMessage AddTask([FromBody] Task task,[FromUri] int companyId) //{ // return Request.CreateResponse(HttpStatusCode.OK, task.Save()); //} public HttpResponseMessage AddTask([FromBody] Entities.Application.Task task, [FromUri] int companyId) { return(Request.CreateResponse(HttpStatusCode.OK, task.Save())); }