public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerinfo)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            addCustomerinfo.Do(CustomerInfo);

            return(RedirectToPage("PaymentMethods"));
        }
示例#2
0
        public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerInfo)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            addCustomerInfo.Action(CustomerInfo);

            return(RedirectToPage("/Checkout/Payment"));
        }
示例#3
0
        public IActionResult OnPost([FromServices] AddCustomerInfo addCustomerInfo)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            // if valid, store in session
            addCustomerInfo.Do(CustomerInformation);

            return(RedirectToPage("/Checkout/Payment"));
        }