public ActionResult AdminUnitWoreda_Destroy(int id) { var hub = _adminUnitService.FindById(id); try { _adminUnitService.DeleteById(id); return(RedirectToAction("Index")); } catch (Exception e) { TempData["CustomError"] = "Sorry, Unable to delete the Admin Unit(Woreda), It may be used by the system."; } return(RedirectToAction("Index")); }