コード例 #1
0
        public void GetPhotosForAlbum(int albumId, IPhotoPresenter presenter)
        {
            if (albumId <= 0)
            {
                return;
            }
            var album  = albumRepository.GetAlbum(albumId);
            var photos = photoRepository.GetAlbumPhotos(albumId);

            presenter.SetPhotosForAlbumResponse(album, photos);
        }
コード例 #2
0
        public void GetAllPhotos(IPhotoPresenter presenter)
        {
            var photos = photoRepository.GetAllPhotos();

            presenter.SetPhotosResponse(photos);
        }