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

            StatusMessage = _CustTrans.CreateCustomer(Customer).GetAwaiter().GetResult();


            return(RedirectToPage("Create"));
        }
コード例 #3
0
 public async Task <IActionResult> OnPostAsync()
 {
     StatusMessage = _CustTrans.CreateCustomer(Customer).GetAwaiter().GetResult();
     return(Page());
 }