public async Task <IActionResult> OnGetAsync(string id) { if (id == null) { return(NotFound()); } ToolBox = (await _toolboxClient.GetAll()).ToList(); Tool = await _toolClient.Get(id); if (Tool == null) { return(NotFound()); } return(Page()); }
public IActionResult OnGet() { ToolBox = _toolboxClient.GetAll().Result.ToList(); return(Page()); }
public async Task OnGetAsync() { Toolbox = (await _client.GetAll()).ToList(); }