internal static ICountry ToDomain(this CountryModel countryModel) { NullGuard.NotNull(countryModel, nameof(countryModel)); ICountry country = new Country(countryModel.Code, countryModel.Name, countryModel.UniversalName, countryModel.PhonePrefix); country.AddAuditInformation(countryModel.CreatedUtcDateTime, countryModel.CreatedByIdentifier, countryModel.ModifiedUtcDateTime, countryModel.ModifiedByIdentifier); country.SetDeletable(countryModel.Deletable); return(country); }