public async Task SubmitOrder() { await ValidationHelper.Call(Context, async() => { await ordersApi.ApiOrdersCreateByEventIdPostAsync(EventId, Order); }); Context.RedirectToRoute("default"); }
public async Task SaveAddress() { await ValidationHelper.Call(Context, async() => { await client.ApiOrdersUpdateAddressByIdPostAsync(ItemId, Item.BillingAddress); await LoadItem(); EditMode = OrderEditMode.ReadOnly; }); }
public async Task SaveCustomerData() { await ValidationHelper.Call(Context, async() => { await client.ApiOrdersUpdateCustomerdataByIdPostAsync(ItemId, Item.CustomerData); await LoadItem(); EditMode = OrderEditMode.ReadOnly; }); }
public async Task SavePaidDate() { await ValidationHelper.Call(Context, async() => { await client.ApiOrdersUpdatePaiddateByIdPostAsync(ItemId, Item.PaymentData.PaidDate); await LoadItem(); EditMode = OrderEditMode.ReadOnly; }); }
public async Task Save() { await ValidationHelper.Call(Context, async() => { if (ItemId == null) { await client.ApiMailtemplatesPostAsync(Item); } else { await client.ApiMailtemplatesByIdPutAsync(ItemId, Item); } }); Context.RedirectToRoute("MailTemplateList"); }