Example #1
0
        internal static PlaylistProviderEntity ToDataObject(this PlaylistProvider serviceModel)
        {
            PlaylistProviderEntity dataObject = new PlaylistProviderEntity();

            dataObject.Id                  = serviceModel.Id;
            dataObject.IsEnabled           = serviceModel.IsEnabled;
            dataObject.Priority            = serviceModel.Priority;
            dataObject.DontCache           = serviceModel.DontCache;
            dataObject.Name                = serviceModel.Name;
            dataObject.UrlFormat           = serviceModel.UrlFormat;
            dataObject.ChannelNameOverride = serviceModel.ChannelNameOverride;

            return(dataObject);
        }
Example #2
0
        internal static PlaylistProvider ToServiceModel(this PlaylistProviderEntity dataObject)
        {
            PlaylistProvider serviceModel = new PlaylistProvider();

            serviceModel.Id                  = dataObject.Id;
            serviceModel.IsEnabled           = dataObject.IsEnabled;
            serviceModel.Priority            = dataObject.Priority;
            serviceModel.DontCache           = dataObject.DontCache;
            serviceModel.Name                = dataObject.Name;
            serviceModel.UrlFormat           = dataObject.UrlFormat;
            serviceModel.ChannelNameOverride = dataObject.ChannelNameOverride;

            return(serviceModel);
        }