protected void Page_Load(object sender, EventArgs e) { AlbumManager albumManager = new AlbumManager(); Session["albums"] = albumManager.GetAlbums(Constants.defaultAlbumsPageSize, Constants.defaultAlbumsPageIndex); Session["albumCount"] = albumManager.GetAlbumCount().ToString(); }
protected void Page_Load(object sender, EventArgs e) { NewsAndEventManager newsAndEventsManager = new NewsAndEventManager(); Session["news"] = newsAndEventsManager.GetNewsHeadline(Constants.defaultHomeNewsPageSize, Constants.defaultNewsPageIndex); AlbumManager albumManager = new AlbumManager(); Session["albums"] = albumManager.GetAlbums(Constants.defaultHomeAlbumsPageSize, Constants.defaultAlbumsPageIndex); Session["albumCount"] = albumManager.GetAlbumCount().ToString(); }