コード例 #1
0
        //// 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));
        }
コード例 #2
0
        public ActionResult Index()
        {
            List <LocationViewModel> locations = _buisnessLogicClass.GetAllTheLocation();

            return(View(locations));
        }