protected bool LoginStatus()
 {
     try
     {
         RegisterViewModel            = GetAdminSession();
         this.CountryService          = new CountryService(Token);
         this.BusinessCategoryService = new BusinessCategoryService(Token);
         this.TimezoneService         = new TimezoneService(Token);
         this.MembershipService       = new MembershipService(Token);
         this.BusinessService         = new BusinessService(Token);
         this.BusinessEmployeeService = new BusinessEmployeeService(Token);
         this.BusinessHourService     = new BusinessHourService(Token);
         this.BusinessHolidayService  = new BusinessHolidayService(Token);
         //Call service;
         if (RegisterViewModel != null)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            var status = LoginStatus();

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