/// <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, }); }
/// <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 }); }