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); }
public static internalDTO.Show MapFromDAL(externalDTO.Show show) { var res = show == null ? null : new internalDTO.Show { Id = show.Id, Title = new internalDTO.MultiLangString(show.Title), Comment = new internalDTO.MultiLangString(show.Comment), Start = show.Start, End = show.End, LocationId = show.LocationId, Location = DAL.App.EF.Mappers.LocationMapper.MapFromDAL(show.Location) }; return(res); }