Example #1
0
    private void FillTopFiveLinks(int i)
    {
        var service = new LinkService();
        var topFive = service.UzmiSlucajneLinkove(5);

        TopRepeater.DataSource = topFive;
        TopRepeater.DataBind();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (User.Identity.IsAuthenticated)
        {
            phPrijava.Visible = false;
            phStatusPrijave.Visible = true;
            var korisnik = korisniciService.UzmiKorisnikaPoKorisnickomImenu(User.Identity.Name);
            lblStatusPrijave.Text = "Dobrodosli " + korisnik.Ime + " " + korisnik.Prezime;
        }
        else
        {
            phPrijava.Visible = true;
            phStatusPrijave.Visible = false;
        }

        var service = new LinkService();
        var topFive = service.UzmiLinkovePoBrojuPoseta(5);
        TopRepeater.DataSource = topFive;
        TopRepeater.DataBind();
    }