public ActionResult Edit( int id ) { try { IUser currentUser = Authorization.GetAuthroizedUser(); if ( currentUser.IsSuperuser() ) { TariffModel model = new TariffModel(); model = model.SelectById( id ); return View( model ); } } catch { return RedirectToAction( "Index" ); } return RedirectToAction( "Index" ); }