public ActionResult Delete(int id, District district) { try { DistrictRepo districtRepo = new DistrictRepo(); string msg = districtRepo.deleteDistrict(id); // TODO: Add delete logic here return(RedirectToAction("Index")); } catch { return(View()); } }