Ejemplo n.º 1
0
        public IActionResult UpdateCustomerWithDetails([FromRoute] int id)
        {
            CustomerOptions     customerOptions = customerService.GetCustomerById(id);
            CustomerOptionModel model           = new CustomerOptionModel {
                customer = customerOptions
            };

            return(View(model));
        }
Ejemplo n.º 2
0
 public IActionResult UpdateCustomer([FromRoute] int id)
 {
     try
     {
         CustomerOption      customerOpt = customerService.GetCustomerById(id);
         CustomerOptionModel model       = new CustomerOptionModel {
             customer = customerOpt
         };
         return(View(model));
     }
     catch (Exception e)
     {
         throw e;
     }
 }