示例#1
0
 public HttpResponseMessage DeleteImage([FromBody] Entities.Application.Task task)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, task.DeleteImage()));
 }
示例#2
0
 public async Task <HttpResponseMessage> AddImageToTask([FromBody] Entities.Application.Task task)
 {
     return(await System.Threading.Tasks.Task.Run(() => {
         return Request.CreateResponse(HttpStatusCode.OK, task.AddImage());
     }));
 }
示例#3
0
 public HttpResponseMessage UpateTaskStatus(Entities.Application.Task t)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, t.UpdateStatus()));
 }
示例#4
0
        //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()));
        }