Beispiel #1
0
    protected void Dodaj_OnClick(object sender, EventArgs e)
    {
        Linkovi link = new Linkovi();
        link.Url = tbUrl.Text;
        link.ImeFirme = tbImeFirme.Text;
        link.Opis = tbOpis.Text;
        link.Email = tbEmail.Text;
        link.KljucnaRec = tbKljucnaRec.Text;

        bool success = korisniciService.DodajLink(link);

        if (success)
            lblAddLinkStatus.Text = "Uspesno ste dodali link.";
        else
            lblAddLinkStatus.Text = "Dodavanje linka nije uspelo.";
    }
		private void detach_Linkovi(Linkovi entity)
		{
			this.SendPropertyChanging();
			entity.Ekstenzije = null;
		}
 partial void DeleteLinkovi(Linkovi instance);
 partial void UpdateLinkovi(Linkovi instance);
 partial void InsertLinkovi(Linkovi instance);
		private void attach_Linkovi(Linkovi entity)
		{
			this.SendPropertyChanging();
			entity.Stanje = this;
		}
		private void detach_Linkovi(Linkovi entity)
		{
			this.SendPropertyChanging();
			entity.Pismo = null;
		}