public Task <IAlbumFolderViewModel> Create(AlbumFolder albumFolder) { IAlbumFolderViewModel albumFolderViewModel = new AlbumFolderViewModel(_currentAlbumManager, albumFolder); return(Task.FromResult(albumFolderViewModel)); }
private AlbumFolderViewModel(ICurrentAlbumManager currentAlbumManager, AlbumFolder albumFolder) { RelativePath = albumFolder.FullPath.Replace(currentAlbumManager.CurrentAlbum.Source, "").TrimStart('\\', '/'); Images = albumFolder.Images; }