public async Task <RedirectToPageResult> OnPostAsync() { _messaging.Dispatch(new AddNewItemCommand { ImageFile = Upload, ItemName = Name }); return(RedirectToPage("NewItem")); }
public AccountOverview AccountOverview(Guid customerId, string accountId) { return(_messaging.Dispatch(new AccountQuery(accountId))); }
public void OnGet() { Items = _messaging.Dispatch(new GetItems()); }