Ejemplo n.º 1
0
        public ActionResult Edit(CityViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                var userId = User.Identity.GetUserId();
                _cityServices.Update(viewModel, userId);

                return(RedirectToAction("Index"));
            }

            return(View("CityForm", viewModel));
        }