// GET: Thumbnails by title public ActionResult GetThumbs(string title) { try { return(View(AlbumsModelBAL.GetThumbs(title))); } catch { return(View("Error")); } }
// GET: Posts public ActionResult GetPosts(int userID) { try { return(View(AlbumsModelBAL.GetPosts(userID))); } catch { return(View("Error")); } }
// GET: User public ActionResult GetUser(string email) { try { return(View(AlbumsModelBAL.GetUser(email))); } catch { return(View("Error")); } }
public ActionResult GetAlbums(int?pageNumber, string query) { try { string searchQuery = query.Trim(); return(View(AlbumsModelBAL.SearchAlbums(searchQuery).ToPagedList(pageNumber ?? 1, 10))); } catch { return(View("Error")); } }
// GET: Albums public ActionResult GetAlbums(int?pageNumber) { // Spent much time troubleshooting albums data table sporadically coming up blank, and // eventually not at all, only to find that the https://github.com/typicode/jsonplaceholder/issues/160 // was having 520 errors for two days. Their server on cloudflare was the issue. try { return(View(AlbumsModelBAL.GetAlbums().ToPagedList(pageNumber ?? 1, 10))); } catch { return(View("Error")); } }