public IActionResult UpdateCustomerWithDetails([FromRoute] int id) { CustomerOptions customerOptions = customerService.GetCustomerById(id); CustomerOptionModel model = new CustomerOptionModel { customer = customerOptions }; return(View(model)); }
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; } }