Esempio n. 1
0
 /// <summary>
 ///  Create web Api model from domain entity [dropdown]
 /// </summary>
 public static ApiModel.MarketingChannelDropDown CreateFrom(this DomainModel.MarketingChannel source)
 {
     return(new ApiModel.MarketingChannelDropDown()
     {
         MarketingChannelId = source.MarketingChannelId,
         MarketingChannelCodeName = source.MarketingChannelCode + " - " + source.MarketingChannelName,
     });
 }
Esempio n. 2
0
 /// <summary>
 ///  Create web Api model from domain entity
 /// </summary>
 public static ApiModel.MarketingChannel CreateFromm(this DomainModel.MarketingChannel source)
 {
     return(new ApiModel.MarketingChannel
     {
         MarketingChannelId = source.MarketingChannelId,
         MarketingChannelCode = source.MarketingChannelCode,
         MarketingChannelName = source.MarketingChannelName,
         MarketingChannelDescription = source.MarketingChannelDescription
     });
 }