// @TODO remove when using Core.PhotoDTO public string GetImagePath() { if (IsLocal) { return(Path.Combine($"/{RelativePath}", AlbumId.ToString(), $"{Hash}.{Extension}").Replace(@"\", "/")); } else { return(Path.Combine($"{Protocol}://{DomainName}/", RelativePath, AlbumId.ToString(), $"{Hash}.{Extension}").Replace(@"\", "/")); } }
public IList <Song> ListOfSongs() { return(Injection.Kernel.Get <ISongRepository>().SearchSongs("AlbumId", AlbumId.ToString())); }