コード例 #1
0
 // @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(@"\", "/"));
     }
 }
コード例 #2
0
 public IList <Song> ListOfSongs()
 {
     return(Injection.Kernel.Get <ISongRepository>().SearchSongs("AlbumId", AlbumId.ToString()));
 }