public ActionResult DeleteProvider(int id) { var service = new ProviderService(); service.DeleteProvider(id); TempData["SaveResult"] = "Provider deleted."; return(RedirectToAction("Index")); }