public static internalDTO.EventInLocation MapFromDAL(externalDTO.EventInLocation eventInLocation)
        {
            var res = eventInLocation == null ? null : new internalDTO.EventInLocation()
            {
                Id         = eventInLocation.Id,
                Location   = LocationMapper.MapFromDAL(eventInLocation.Location),
                LocationId = eventInLocation.LocationId,
                Event      = EventMapper.MapFromDAL(eventInLocation.Event),
                EventId    = eventInLocation.EventId
            };

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

            return(res);
        }