示例#1
0
        public ActionResult Create(LocationViewModel locationViewModel)
        {
            if (ModelState.IsValid)
            {
                _buisnessLogicClass.CreateNewLocation(locationViewModel);

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