// GET: CustomerAccounts/Edit/5 public IActionResult Edit(int?id) { if (id == null) { return(NotFound()); } var customerAccount = Salon.GetCustomerAccountDetails(id.Value); if (customerAccount == null) { return(NotFound()); } return(View(customerAccount)); }