Exemple #1
0
        public static externalDTO.Schooling MapFromInternal(internalDTO.Schooling schooling)
        {
            var res = schooling == null ? null : new externalDTO.Schooling
            {
                Id            = schooling.Id,
                SchoolingName = schooling.SchoolingName,
                Start         = schooling.Start,
                MaterialId    = schooling.MaterialId,
                Material      = MaterialMapper.MapFromInternal(schooling.Material),
                LocationId    = schooling.LocationId,
                Location      = LocationMapper.MapFromInternal(schooling.Location)
            };

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

            return(res);
        }
Exemple #3
0
        public static externalDTO.Show MapFromInternal(internalDTO.Show show)
        {
            var res = show == null ? null : new externalDTO.Show
            {
                Id         = show.Id,
                Title      = show.Title,
                Comment    = show.Comment,
                Start      = show.Start,
                End        = show.End,
                LocationId = show.LocationId,
                Location   = LocationMapper.MapFromInternal(show.Location)
            };

            return(res);
        }