コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }