Exemplo n.º 1
0
        public static CountryViewModel EditCountry(CountryPublished country)
        {
            var model = new CountryViewModel
            {
                Id          = country.Id,
                CountryName = country.CountryName,
                PhoneCode   = country.PhoneCode,
                IsoCode     = country.IsoCode,
            };

            return(model);
        }
Exemplo n.º 2
0
        public static CountryPublished EditCountry(CountryViewModel model)
        {
            CountryPublished country = new CountryPublished
            {
                Id          = model.Id,
                CountryName = model.CountryName,
                PhoneCode   = model.PhoneCode,
                IsoCode     = model.IsoCode,
            };

            return(country);
        }