Ejemplo n.º 1
0
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var status = this.LoginStatus();

            if (!status)
            {
                filterContext.Result = RedirectToAction("Login", "Home", new { area = "Admin" });
            }
            else
            {
                this.BusinessService         = new BusinessService(this.Token);
                this.TimezoneService         = new TimezoneService(this.Token);
                this.BusinessCategoryService = new BusinessCategoryService(this.Token);
                this.CountryService          = new CountryService(this.Token);
            }
        }