Example #1
0
 public IActionResult Create(CustomerViewModel customerViewModel)
 {
     if (ModelState.IsValid)
     {
         var customer = Map(customerViewModel);
         _billingContext.CreateCustomer(customer);
         return(Redirect("Index"));
     }
     return(View(customerViewModel));
 }