public ActionResult GetPhotos(int AlbumId) { try { List <Photo> _photos = new lHome().GetPhotos(AlbumId); return(Json(_photos)); } catch (Exception) { return(Json(null)); } }
public ActionResult GetComments(int PhotoId) { try { List <Comment> _comments = new lHome().GetComments(PhotoId); return(Json(_comments)); } catch (Exception) { return(Json(null)); } }
public ActionResult GetAlbums() { try { List <Album> _albums = new lHome().GetAlbums(); return(Json(_albums)); } catch (Exception) { return(Json(null)); } }