public async Task OnGet() { Brands = await _storage.Get(new BrandFilter { NameOrBarcode = SearchCriteria, }); }
public async Task <IActionResult> OnGet(int id) { Brand = await _storage.Get(id); if (Brand == null) { return(RedirectToPage("./NotFound")); } return(Page()); }