//// GET: CustomerController/Details/5 //public ActionResult Details(int id) //{ // return View(); //} //// GET: CustomerController/Create //public ActionResult Create() //{ // return View(); //} //// POST: CustomerController/Create //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult Create(IFormCollection collection) //{ // try // { // return RedirectToAction(nameof(Index)); // } // catch // { // return View(); // } //} // GET: CustomerController/Edit/5 public ActionResult Edit(int id) { CustomerViewModel customerViewModel = _buisnessLogicClass.GetCustomerVMByID(id); List <LocationViewModel> Locations = _buisnessLogicClass.GetAllTheLocation(); ViewBag.Locations = Locations; return(View(customerViewModel)); }