public static AccountModel CurrentUser(this HttpContext httpContext, IMemoryCache cache)
        {
            IRequestCookieCollection cookies    = httpContext.Request.Cookies;
            string            token             = cookies["token"];
            CredentialsManage credentialsManage = new CredentialsManage(cache);
            AccountModel      account           = credentialsManage.GetAccount(token);

#if DEBUG
            if (account == null)
            {
                account = new AccountModel()
                {
                    Id          = "1",
                    UserName    = "******",
                    UserAccount = "admin",
                    MobileNo    = "admin",
                    Email       = "*****@*****.**",
                };
            }
#endif
            return(account);
        }
 public AccountDataController(DataContext context, IMemoryCache cache)
 {
     credentialsManage   = new CredentialsManage(cache);
     sysUserInfoService  = new SysUserInfoBLL(context);
     currentUserRouteBLL = new CurrentUserRouteBLL(context);
 }