public IHttpActionResult Put(int id) { TaskBL ts = new TaskBL(); ts.Endtask(id); return(Ok("End Task updated")); }