public static CountryViewModel EditCountry(CountryPublished country) { var model = new CountryViewModel { Id = country.Id, CountryName = country.CountryName, PhoneCode = country.PhoneCode, IsoCode = country.IsoCode, }; return(model); }
public static CountryPublished EditCountry(CountryViewModel model) { CountryPublished country = new CountryPublished { Id = model.Id, CountryName = model.CountryName, PhoneCode = model.PhoneCode, IsoCode = model.IsoCode, }; return(country); }