public ActionResult Delete(int id) { try { IUser currentUser = Authorization.GetAuthroizedUser(); if ( currentUser.IsSuperuser() ) { TariffModel connector = new TariffModel(); connector.DeleteById( id ); } } catch { return RedirectToAction( "Index" ); } return RedirectToAction( "Index" ); }