// GET: Customer
 public ActionResult Index()
 {
     IList<Customer> cusList = new List<Customer>();
     CustomerRepository repo = new CustomerRepository();
     cusList = repo.GetAllCustomers();
     return View(cusList);
 }
 public ActionResult Delete([Bind(Include = "CustomerId")]Customer cust)
 {
     CustomerRepository repo = new CustomerRepository();
     repo.DeleteCustomer((int)cust.CustomerId);
     return RedirectToAction("Index");
 }
 // GET: Customer/Delete/5
 public ActionResult Delete(int id)
 {
     CustomerRepository repo = new CustomerRepository();
     Customer c = repo.GetCustomerById(id);
     return View(c);
 }
 public ActionResult Create(Customer cus)
 {
     CustomerRepository cusRepo = new CustomerRepository();
     cusRepo.CreateCustomer(cus);
     return RedirectToAction("Index");
 }
 // GET: Customer/Details/5
 public ActionResult Details(int id)
 {
     CustomerRepository repo = new CustomerRepository();
     Customer cust = repo.GetCustomerById(id);
     return View(cust);
 }