public IEnumerable <PhotoApi> GetPhotos() { var photos = _photoAlbumService.GetPhotos(); return(photos.ToArray()); }
public ActionResult Photos(int albumId) { return(Json(_photoAlbumService.GetPhotos(albumId), JsonRequestBehavior.AllowGet)); }