public IActionResult OnPostCreateCustomer() { try { StatusMessage = _CustTrans.CreateCustomer(Customer).GetAwaiter().GetResult(); } catch { } return(RedirectToPage("/Sales/ExternalBillings/Create")); }
public async Task <IActionResult> OnPostAsync() { //if (!ModelState.IsValid) //{ // return Page(); //} StatusMessage = _CustTrans.CreateCustomer(Customer).GetAwaiter().GetResult(); return(RedirectToPage("Create")); }
public async Task <IActionResult> OnPostAsync() { StatusMessage = _CustTrans.CreateCustomer(Customer).GetAwaiter().GetResult(); return(Page()); }