public static NonMemberSettingEntity Map(this NonMemberSettings settings) { var entity = new NonMemberSettingEntity { id = settings.Id }; settings.MapTo(entity); return(entity); }
void ISettingsRepository.UpdateNonMemberSettings(NonMemberSettings settings) { using (var dc = CreateContext()) { var entity = GetNonMemberSettingsEntity(dc, settings.Id); if (entity != null) { settings.MapTo(entity); dc.SubmitChanges(); } } }