コード例 #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()));
        }