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); }
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); }
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); }