public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerinfo) { if (!ModelState.IsValid) { return(Page()); } addCustomerinfo.Do(CustomerInfo); return(RedirectToPage("PaymentMethods")); }
public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerInfo) { if (!ModelState.IsValid) { return(Page()); } addCustomerInfo.Action(CustomerInfo); return(RedirectToPage("/Checkout/Payment")); }
public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerInfo) { if (!ModelState.IsValid) { return(Page()); } // if valid, store in session addCustomerInfo.Do(CustomerInformation); return(RedirectToPage("/Checkout/Payment")); }