public IHttpActionResult put(int id) { ProjectBAL obj = new ProjectBAL(); obj.Endtask(id); return(Ok("Record is deleted")); }