示例#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);
        }
示例#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);
        }