Exemplo n.º 1
0
        public void Vytvor(int id)
        {
            List <object> attributes = KomentarGateway.SelectID(id);

            Idc        = id;
            Predmet    = attributes[1].ToString();
            Text       = attributes[2].ToString();
            ZakaznikID = (int)attributes[3];
            ZboziID    = (int)attributes[4];
        }
Exemplo n.º 2
0
        public bool Vlozit()
        {
            List <object> komentar = new List <object>();

            Idc = 0;

            komentar.Add(Idc);
            komentar.Add(Predmet);
            komentar.Add(Text);
            komentar.Add(ZakaznikID);
            komentar.Add(ZboziID);

            KomentarGateway.Insert(komentar);
            return(true);
        }