// // GET: /Shipping/Delete/5 public ActionResult Delete(int id) { if (!Access.HasAccess(75)) { System.Web.Routing.RouteValueDictionary route = new System.Web.Routing.RouteValueDictionary(); route.Add("err", "Нет доступа!"); return(RedirectToAction("Error", "Home", route)); } Shipping model = new Shipping(); model = model.GetById(id); model.Delete(model); return(RedirectToAction("Index")); }