// GET: Customer/Edit/5 public ActionResult Edit(int id) { Customer customer = _customService.GetCustomerById(id); if (customer != null) { return(View(customer)); } return(View()); }