private async void btnProcesiraj_Click(object sender, EventArgs e)
        {
            NarudzbaUpsertRequest request = new NarudzbaUpsertRequest();
            var entity1 = await _narudzbe.GetById <OnlineGym_Model.Narudzbe>(_id);

            request.KorisnikId   = GlobalKorisnik.LogiraniKorisnikId;
            request.NarudzbaId   = _id;
            request.ClanID       = entity1.ClanId;
            request.Datum        = entity1.Datum;
            request.Procesirana  = true;
            request.BrojNarudzbe = entity1.BrojNarudzbe;
            OnlineGym_Model.Narudzbe entity = null;
            try
            {
                entity = await _narudzbe.Update <OnlineGym_Model.Narudzbe>(_id.Value, request);

                MessageBox.Show("Izmjene spašene!");
                this.Close();
            }
            catch (Exception error)
            {
                MessageBox.Show("Greška!");
                return;
            }
        }
 public NarudzbeRezultat(Narudzbe item)
 {
     NarudzbaId   = item.NarudzbaId;
     ClanId       = item.ClanId;
     Datum        = item.Datum;
     Procesirana  = item.Procesirana;
     Clan         = item.Clan.Ime + " " + item.Clan.Prezime;
     BrojNarudzbe = item.BrojNarudzbe;
 }