public JsonResult Delete(int projectID) { try { ProjectModel model = projectBll.GetModel(projectID); if (model != null) { projectBll.Delete(projectID); } else { return(Json(new { code = 500, msg = "parms is null" })); } return(Json(new { code = 200 })); } catch (Exception ex) { return(Json(new { code = 500, msg = ex.Message })); } }