예제 #1
0
        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" );
        }