public virtual ITeamSearchModel MapToSearchModel(ITeamModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ITeamModel, TeamSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId                   = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey            = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl         = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl        = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName                 = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription     = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription          = model.PrimaryImageFile?.Description;
            searchModel.FirstIssueAppearanceId               = model.FirstIssueAppearanceId;
            searchModel.FirstIssueAppearanceCustomKey        = model.FirstIssueAppearance?.CustomKey;
            searchModel.FirstIssueAppearanceApiDetailUrl     = model.FirstIssueAppearance?.ApiDetailUrl;
            searchModel.FirstIssueAppearanceSiteDetailUrl    = model.FirstIssueAppearance?.SiteDetailUrl;
            searchModel.FirstIssueAppearanceName             = model.FirstIssueAppearance?.Name;
            searchModel.FirstIssueAppearanceShortDescription = model.FirstIssueAppearance?.ShortDescription;
            searchModel.FirstIssueAppearanceDescription      = model.FirstIssueAppearance?.Description;
            searchModel.PublisherId               = model.PublisherId;
            searchModel.PublisherCustomKey        = model.Publisher?.CustomKey;
            searchModel.PublisherApiDetailUrl     = model.Publisher?.ApiDetailUrl;
            searchModel.PublisherSiteDetailUrl    = model.Publisher?.SiteDetailUrl;
            searchModel.PublisherName             = model.Publisher?.Name;
            searchModel.PublisherShortDescription = model.Publisher?.ShortDescription;
            searchModel.PublisherDescription      = model.Publisher?.Description;
            // Return Search Model
            return(searchModel);
        }
Пример #2
0
        public virtual ISeriesSearchModel MapToSearchModel(ISeriesModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ISeriesModel, SeriesSearchModel>(model);

            // Search Properties
            searchModel.PublisherId                  = model.PublisherId;
            searchModel.PublisherCustomKey           = model.Publisher?.CustomKey;
            searchModel.PublisherApiDetailUrl        = model.Publisher?.ApiDetailUrl;
            searchModel.PublisherSiteDetailUrl       = model.Publisher?.SiteDetailUrl;
            searchModel.PublisherName                = model.Publisher?.Name;
            searchModel.PublisherShortDescription    = model.Publisher?.ShortDescription;
            searchModel.PublisherDescription         = model.Publisher?.Description;
            searchModel.FirstEpisodeId               = model.FirstEpisodeId;
            searchModel.FirstEpisodeCustomKey        = model.FirstEpisode?.CustomKey;
            searchModel.FirstEpisodeApiDetailUrl     = model.FirstEpisode?.ApiDetailUrl;
            searchModel.FirstEpisodeSiteDetailUrl    = model.FirstEpisode?.SiteDetailUrl;
            searchModel.FirstEpisodeName             = model.FirstEpisode?.Name;
            searchModel.FirstEpisodeShortDescription = model.FirstEpisode?.ShortDescription;
            searchModel.FirstEpisodeDescription      = model.FirstEpisode?.Description;
            searchModel.LastEpisodeId                = model.LastEpisodeId;
            searchModel.LastEpisodeCustomKey         = model.LastEpisode?.CustomKey;
            searchModel.LastEpisodeApiDetailUrl      = model.LastEpisode?.ApiDetailUrl;
            searchModel.LastEpisodeSiteDetailUrl     = model.LastEpisode?.SiteDetailUrl;
            searchModel.LastEpisodeName              = model.LastEpisode?.Name;
            searchModel.LastEpisodeShortDescription  = model.LastEpisode?.ShortDescription;
            searchModel.LastEpisodeDescription       = model.LastEpisode?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual IVideoSearchModel MapToSearchModel(IVideoModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IVideoModel, VideoSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId               = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey        = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl     = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl    = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName             = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription      = model.PrimaryImageFile?.Description;
            searchModel.AuthorId                  = model.AuthorId;
            searchModel.AuthorCustomKey           = model.Author?.CustomKey;
            searchModel.AuthorApiDetailUrl        = model.Author?.ApiDetailUrl;
            searchModel.AuthorSiteDetailUrl       = model.Author?.SiteDetailUrl;
            searchModel.AuthorName                = model.Author?.Name;
            searchModel.AuthorShortDescription    = model.Author?.ShortDescription;
            searchModel.AuthorDescription         = model.Author?.Description;
            searchModel.VideoTypeId               = model.VideoTypeId;
            searchModel.VideoTypeCustomKey        = model.VideoType?.CustomKey;
            searchModel.VideoTypeApiDetailUrl     = model.VideoType?.ApiDetailUrl;
            searchModel.VideoTypeSiteDetailUrl    = model.VideoType?.SiteDetailUrl;
            searchModel.VideoTypeName             = model.VideoType?.Name;
            searchModel.VideoTypeShortDescription = model.VideoType?.ShortDescription;
            searchModel.VideoTypeDescription      = model.VideoType?.Description;
            // Return Search Model
            return(searchModel);
        }
Пример #4
0
        public virtual IPowerSearchModel MapToSearchModel(IPowerModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IPowerModel, PowerSearchModel>(model);

            // Search Properties
            // Return Search Model
            return(searchModel);
        }
Пример #5
0
        public virtual IStudioSearchModel MapToSearchModel(IStudioModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IStudioModel, StudioSearchModel>(model);

            // Search Properties
            // Return Search Model
            return(searchModel);
        }
        public virtual IOriginSearchModel MapToSearchModel(IOriginModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IOriginModel, OriginSearchModel>(model);

            // Search Properties
            // Return Search Model
            return(searchModel);
        }
        public virtual IImageFileSearchModel MapToSearchModel(IImageFileModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IImageFileModel, ImageFileSearchModel>(model);

            // Search Properties
            // Return Search Model
            return(searchModel);
        }
Пример #8
0
        public virtual IResourceTypeSearchModel MapToSearchModel(IResourceTypeModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IResourceTypeModel, ResourceTypeSearchModel>(model);

            // Search Properties
            // Return Search Model
            return(searchModel);
        }
Пример #9
0
        public virtual ILocationAliasSearchModel MapToSearchModel(ILocationAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ILocationAliasModel, LocationAliasSearchModel>(model);

            // Search Properties
            searchModel.LocationId               = model.LocationId;
            searchModel.LocationCustomKey        = model.Location?.CustomKey;
            searchModel.LocationApiDetailUrl     = model.Location?.ApiDetailUrl;
            searchModel.LocationSiteDetailUrl    = model.Location?.SiteDetailUrl;
            searchModel.LocationName             = model.Location?.Name;
            searchModel.LocationShortDescription = model.Location?.ShortDescription;
            searchModel.LocationDescription      = model.Location?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual ITeamAliasSearchModel MapToSearchModel(ITeamAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ITeamAliasModel, TeamAliasSearchModel>(model);

            // Search Properties
            searchModel.TeamId               = model.TeamId;
            searchModel.TeamCustomKey        = model.Team?.CustomKey;
            searchModel.TeamApiDetailUrl     = model.Team?.ApiDetailUrl;
            searchModel.TeamSiteDetailUrl    = model.Team?.SiteDetailUrl;
            searchModel.TeamName             = model.Team?.Name;
            searchModel.TeamShortDescription = model.Team?.ShortDescription;
            searchModel.TeamDescription      = model.Team?.Description;
            // Return Search Model
            return(searchModel);
        }
Пример #11
0
        public virtual IPublisherSearchModel MapToSearchModel(IPublisherModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IPublisherModel, PublisherSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId               = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey        = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl     = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl    = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName             = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription      = model.PrimaryImageFile?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual IVolumeAliasSearchModel MapToSearchModel(IVolumeAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IVolumeAliasModel, VolumeAliasSearchModel>(model);

            // Search Properties
            searchModel.VolumeId               = model.VolumeId;
            searchModel.VolumeCustomKey        = model.Volume?.CustomKey;
            searchModel.VolumeApiDetailUrl     = model.Volume?.ApiDetailUrl;
            searchModel.VolumeSiteDetailUrl    = model.Volume?.SiteDetailUrl;
            searchModel.VolumeName             = model.Volume?.Name;
            searchModel.VolumeShortDescription = model.Volume?.ShortDescription;
            searchModel.VolumeDescription      = model.Volume?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual IStoryArcAliasSearchModel MapToSearchModel(IStoryArcAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IStoryArcAliasModel, StoryArcAliasSearchModel>(model);

            // Search Properties
            searchModel.StoryArcId               = model.StoryArcId;
            searchModel.StoryArcCustomKey        = model.StoryArc?.CustomKey;
            searchModel.StoryArcApiDetailUrl     = model.StoryArc?.ApiDetailUrl;
            searchModel.StoryArcSiteDetailUrl    = model.StoryArc?.SiteDetailUrl;
            searchModel.StoryArcName             = model.StoryArc?.Name;
            searchModel.StoryArcShortDescription = model.StoryArc?.ShortDescription;
            searchModel.StoryArcDescription      = model.StoryArc?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual IObjectAliasSearchModel MapToSearchModel(IObjectAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IObjectAliasModel, ObjectAliasSearchModel>(model);

            // Search Properties
            searchModel.ObjectId               = model.ObjectId;
            searchModel.ObjectCustomKey        = model.Object?.CustomKey;
            searchModel.ObjectApiDetailUrl     = model.Object?.ApiDetailUrl;
            searchModel.ObjectSiteDetailUrl    = model.Object?.SiteDetailUrl;
            searchModel.ObjectName             = model.Object?.Name;
            searchModel.ObjectShortDescription = model.Object?.ShortDescription;
            searchModel.ObjectDescription      = model.Object?.Description;
            // Return Search Model
            return(searchModel);
        }
        public virtual IPowerAliasSearchModel MapToSearchModel(IPowerAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IPowerAliasModel, PowerAliasSearchModel>(model);

            // Search Properties
            searchModel.PowerId               = model.PowerId;
            searchModel.PowerCustomKey        = model.Power?.CustomKey;
            searchModel.PowerApiDetailUrl     = model.Power?.ApiDetailUrl;
            searchModel.PowerSiteDetailUrl    = model.Power?.SiteDetailUrl;
            searchModel.PowerName             = model.Power?.Name;
            searchModel.PowerShortDescription = model.Power?.ShortDescription;
            searchModel.PowerDescription      = model.Power?.Description;
            // Return Search Model
            return(searchModel);
        }
Пример #16
0
        public virtual ISeriesAliasSearchModel MapToSearchModel(ISeriesAliasModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ISeriesAliasModel, SeriesAliasSearchModel>(model);

            // Search Properties
            searchModel.SeriesId               = model.SeriesId;
            searchModel.SeriesCustomKey        = model.Series?.CustomKey;
            searchModel.SeriesApiDetailUrl     = model.Series?.ApiDetailUrl;
            searchModel.SeriesSiteDetailUrl    = model.Series?.SiteDetailUrl;
            searchModel.SeriesName             = model.Series?.Name;
            searchModel.SeriesShortDescription = model.Series?.ShortDescription;
            searchModel.SeriesDescription      = model.Series?.Description;
            // Return Search Model
            return(searchModel);
        }
Пример #17
0
        public virtual IMovieSearchModel MapToSearchModel(IMovieModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IMovieModel, MovieSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId               = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey        = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl     = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl    = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName             = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription      = model.PrimaryImageFile?.Description;
            searchModel.HasStaffReview = model.HasStaffReview;
            searchModel.Distributor    = model.Distributor;
            // Return Search Model
            return(searchModel);
        }
        public virtual ICharacterSearchModel MapToSearchModel(ICharacterModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <ICharacterModel, CharacterSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId                   = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey            = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl         = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl        = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName                 = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription     = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription          = model.PrimaryImageFile?.Description;
            searchModel.FirstIssueAppearanceId               = model.FirstIssueAppearanceId;
            searchModel.FirstIssueAppearanceCustomKey        = model.FirstIssueAppearance?.CustomKey;
            searchModel.FirstIssueAppearanceApiDetailUrl     = model.FirstIssueAppearance?.ApiDetailUrl;
            searchModel.FirstIssueAppearanceSiteDetailUrl    = model.FirstIssueAppearance?.SiteDetailUrl;
            searchModel.FirstIssueAppearanceName             = model.FirstIssueAppearance?.Name;
            searchModel.FirstIssueAppearanceShortDescription = model.FirstIssueAppearance?.ShortDescription;
            searchModel.FirstIssueAppearanceDescription      = model.FirstIssueAppearance?.Description;
            searchModel.GenderId                  = model.GenderId;
            searchModel.GenderCustomKey           = model.Gender?.CustomKey;
            searchModel.GenderApiDetailUrl        = model.Gender?.ApiDetailUrl;
            searchModel.GenderSiteDetailUrl       = model.Gender?.SiteDetailUrl;
            searchModel.GenderName                = model.Gender?.Name;
            searchModel.GenderShortDescription    = model.Gender?.ShortDescription;
            searchModel.GenderDescription         = model.Gender?.Description;
            searchModel.OriginId                  = model.OriginId;
            searchModel.OriginCustomKey           = model.Origin?.CustomKey;
            searchModel.OriginApiDetailUrl        = model.Origin?.ApiDetailUrl;
            searchModel.OriginSiteDetailUrl       = model.Origin?.SiteDetailUrl;
            searchModel.OriginName                = model.Origin?.Name;
            searchModel.OriginShortDescription    = model.Origin?.ShortDescription;
            searchModel.OriginDescription         = model.Origin?.Description;
            searchModel.PublisherId               = model.PublisherId;
            searchModel.PublisherCustomKey        = model.Publisher?.CustomKey;
            searchModel.PublisherApiDetailUrl     = model.Publisher?.ApiDetailUrl;
            searchModel.PublisherSiteDetailUrl    = model.Publisher?.SiteDetailUrl;
            searchModel.PublisherName             = model.Publisher?.Name;
            searchModel.PublisherShortDescription = model.Publisher?.ShortDescription;
            searchModel.PublisherDescription      = model.Publisher?.Description;
            searchModel.RealName                  = model.RealName;
            // Return Search Model
            return(searchModel);
        }
Пример #19
0
        public virtual IEpisodeSearchModel MapToSearchModel(IEpisodeModel model)
        {
            var searchModel = NameableEntityMapper.MapToSearchModel <IEpisodeModel, EpisodeSearchModel>(model);

            // Search Properties
            searchModel.PrimaryImageFileId               = model.PrimaryImageFileId;
            searchModel.PrimaryImageFileCustomKey        = model.PrimaryImageFile?.CustomKey;
            searchModel.PrimaryImageFileApiDetailUrl     = model.PrimaryImageFile?.ApiDetailUrl;
            searchModel.PrimaryImageFileSiteDetailUrl    = model.PrimaryImageFile?.SiteDetailUrl;
            searchModel.PrimaryImageFileName             = model.PrimaryImageFile?.Name;
            searchModel.PrimaryImageFileShortDescription = model.PrimaryImageFile?.ShortDescription;
            searchModel.PrimaryImageFileDescription      = model.PrimaryImageFile?.Description;
            searchModel.SeriesId               = model.SeriesId;
            searchModel.SeriesCustomKey        = model.Series?.CustomKey;
            searchModel.SeriesApiDetailUrl     = model.Series?.ApiDetailUrl;
            searchModel.SeriesSiteDetailUrl    = model.Series?.SiteDetailUrl;
            searchModel.SeriesName             = model.Series?.Name;
            searchModel.SeriesShortDescription = model.Series?.ShortDescription;
            searchModel.SeriesDescription      = model.Series?.Description;
            searchModel.HasStaffReview         = model.HasStaffReview;
            // Return Search Model
            return(searchModel);
        }