예제 #1
0
 public void ConvertTo(CountryView countryView, Country country)
 {
     country.Name        = countryView.Name;
     country.NameEn      = countryView.NameEn;
     country.Citizenship = countryView.Citizenship;
     country.Alpha2Code  = countryView.Alpha2Code;
     country.Alpha3Code  = countryView.Alpha3Code;
     country.NumericCode = countryView.NumericCode;
     country.Risk        = countryView.Risk;
 }
예제 #2
0
 public void ConvertFrom(Country country, CountryView countryView)
 {
     countryView.CountryPK   = country.CountryPK;
     countryView.Name        = country.Name;
     countryView.NameEn      = country.NameEn;
     countryView.Citizenship = country.Citizenship;
     countryView.Alpha2Code  = country.Alpha2Code;
     countryView.Alpha3Code  = country.Alpha3Code;
     countryView.NumericCode = country.NumericCode;
     countryView.Risk        = country.Risk;
     countryView.Deleted     = country.Deleted;
 }