public IHttpActionResult DeleteTask(int id) { try { _TaskBO = new TaskBO(); _TaskBO.DeleteTask(id); return(Ok("Success")); } catch (Exception) { return(Ok("Error")); } }