예제 #1
0
        public IEnumerable <PhotoApi> GetPhotos()
        {
            var photos = _photoAlbumService.GetPhotos();

            return(photos.ToArray());
        }
예제 #2
0
 public ActionResult Photos(int albumId)
 {
     return(Json(_photoAlbumService.GetPhotos(albumId), JsonRequestBehavior.AllowGet));
 }