public ActionResult Delete(int id, IFormCollection collection) { try { // TODO: Add delete logic here repo.DeleteProvider(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(int id, IFormCollection collection) { try { // TODO: Add delete logic here repo.DeleteProvider(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }