示例#1
0
        public static internalDTO.Show MapFromExternal(externalDTO.Show show)
        {
            var res = show == null ? null : new internalDTO.Show
            {
                Id         = show.Id,
                Title      = show.Title,
                Comment    = show.Comment,
                Start      = show.Start,
                End        = show.End,
                LocationId = show.LocationId,
                Location   = LocationMapper.MapFromExternal(show.Location)
            };

            return(res);
        }
示例#2
0
        public static internalDTO.Schooling MapFromExternal(externalDTO.Schooling schooling)
        {
            var res = schooling == null ? null : new internalDTO.Schooling
            {
                Id            = schooling.Id,
                SchoolingName = schooling.SchoolingName,
                Start         = schooling.Start,
                MaterialId    = schooling.MaterialId,
                Material      = MaterialMapper.MapFromExternal(schooling.Material),
                LocationId    = schooling.LocationId,
                Location      = LocationMapper.MapFromExternal(schooling.Location),
            };

            return(res);
        }
示例#3
0
        public static internalDTO.Competition MapFromExternal(externalDTO.Competition competition)
        {
            var res = competition == null ? null : new internalDTO.Competition
            {
                Id         = competition.Id,
                Title      = competition.Title,
                Comment    = competition.Comment,
                Start      = competition.Start,
                End        = competition.End,
                LocationId = competition.LocationId,
                Location   = LocationMapper.MapFromExternal(competition.Location)
            };

            return(res);
        }