public ActionResult DeleteStudent(string id) { try { bool ret = BusinessRegistrar.DeleteStudent(long.Parse(id)); if (ret) { return(new HttpStatusCodeResult(200)); } else { return(new HttpStatusCodeResult(500)); } } catch (Exception ex) { TempData["Message"] = ex.Message; return(new HttpStatusCodeResult(500)); } }