Пример #1
0
        public ActionResult Edit(NationalitySinglePageViewModel model)
        {
            UpdateNationalityRequest  request  = model.NationalityViewModel.ConvertToUpdateNationalityRequest();
            UpdateNationalityResponse response = _nationalityService.UpdateNatonality(request);

            if (response.Success)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                model.Success = false;
                model.Message = response.Message;
                return(View(model));
            }
        }