Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }