public static SDK.Models.GlobalSetting ToSDKModel(this GlobalSetting entity, SDK.Models.GlobalSetting destination = null) { if (entity != null) { if (destination == null) { destination = new SDK.Models.GlobalSetting(); } SDK.Models.GlobalSetting result = am.Mapper.Map <GlobalSetting, SDK.Models.GlobalSetting>(entity, destination); return(result); } return(null); }
public static GlobalSetting ToDomainModel(this SDK.Models.GlobalSetting entity, GlobalSetting destination = null) { if (entity != null) { if (destination == null) { destination = new Domain.GlobalSetting(); } GlobalSetting result = am.Mapper.Map <SDK.Models.GlobalSetting, GlobalSetting>(entity, destination); return(result); } return(null); }