Пример #1
0
 public async Task OnGet()
 {
     Brands = await _storage.Get(new BrandFilter
     {
         NameOrBarcode = SearchCriteria,
     });
 }
Пример #2
0
        public async Task <IActionResult> OnGet(int id)
        {
            Brand = await _storage.Get(id);

            if (Brand == null)
            {
                return(RedirectToPage("./NotFound"));
            }

            return(Page());
        }