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