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); }
public void GetAllPhotos(IPhotoPresenter presenter) { var photos = photoRepository.GetAllPhotos(); presenter.SetPhotosResponse(photos); }