public new static Cd GetObjectFromFindDocXmlBsMarcLight(string xml) { var document = new Cd(); document.FillPropertiesLight(xml); return document; }
public static string GetLastFmSearchQuery(Cd cd) { if ((cd.ArtistOrComposer != null || cd.MusicGroup != null) && cd.Title != null) { var trimmedTitle = cd.Title.Split(';').ToList()[0].Trim(); var searchString = "autocorrect=1&artist=" + cd.ArtistOrGroupName + "&album=" + trimmedTitle; return searchString; } return string.Empty; }
public static DocumentDto Map(Cd cd) { var cdDto = new CdDto(); if(null != cd.ArtistOrComposer) cdDto.ArtistOrComposerName = cd.ArtistOrComposer.Name; if(null != cd.CompositionTypeOrGenre) cdDto.CompositionTypesOrGenres = cd.CompositionTypeOrGenre.ToArray(); return cdDto; }