Esempio n. 1
0
        public ActionResult CountryInsert(CountryViewModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException(nameof(model));
            }

            var countryModel = new Country()
            {
                Title = model.Title,
                Show  = model.Show
            };

            _countryRepository.Add(countryModel);
            _countryRepository.Complete();

            return(Json(""));
        }