示例#1
0
        public ActionResult Edit(int id, LocationViewModel locationViewModel)
        {
            if (ModelState.IsValid)
            {
                _buisnessLogicClass.UpdateLocation(id, locationViewModel);

                return(View("Details", locationViewModel));
            }
            else
            {
                return(BadRequest());
            }
        }