Esempio n. 1
0
 public IActionResult OnGet(int?id)
 {
     if (id == null)
     {
         return(NotFound());
     }
     InfoBillIndexVM = _infobill.GetInfoBillListVm("", id ?? default(int), 1);
     ProductIndexVM  = _pro.GetProductListVm("", 0, 1);
     if (InfoBillIndexVM == null)
     {
         return(NotFound());
     }
     return(Page());
 }
        public IActionResult OnGet(int pageIndex = 1)
        {
            var t = Request.Cookies["logon"];

            if (t == null)
            {
                return(RedirectToPage("../Accounts/Login"));
            }
            if (t == "false")
            {
                return(RedirectToPage("../Accounts/Login"));
            }

            ProductIndexVm = _productService.GetProductListVm(searchCode, searchName, searchType, searchPriceFrom, searchPriceTo, searchQuantityFrom, searchQuantityTo, pageIndex);
            return(Page());
        }