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