// GET: Customer/Delete/5 public ActionResult Delete(int id) { MyRepository repository = new MyRepository(); return(View(repository.GetCustomer(id))); }