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