Exemplo n.º 1
0
        public IActionResult OnGet(int pageIndex = 1)
        {
            var t = Request.Cookies["logon"];

            if (t == null)
            {
                return(RedirectToPage("Login"));
            }
            if (t == "false")
            {
                return(RedirectToPage("Login"));
            }
            var permiss = Request.Cookies["permission"];

            if (permiss != null)
            {
                if (!string.IsNullOrEmpty(permiss))
                {
                    if (permiss != "0")
                    {
                        return(RedirectToPage("../Index"));
                    }
                }
            }
            AccountIndexVm = _productService.GetAccountListVm(pageIndex);
            return(Page());
        }
Exemplo n.º 2
0
 public void OnGet(string searchString, int pageIndex = 1)
 {
     AccountIndexVM = _accountService.GetAccountListVm(SearchString, AccountGenre, pageIndex);
 }