public ActionResult Delete(int id, IFormCollection collection) { try { CusRepo.DeleteCustomer(id); CusRepo.Save(); return(RedirectToAction(nameof(Index))); } catch { return(RedirectToAction(nameof(Index))); } }