private static INamena CreateNamenaObject(DataRow dr)
        {
            var namena = new Namena
            {
                id   = dr["klasa_namena"].ToString(),
                text = dr["klasa_namena"].ToString()
            };

            return(namena);
        }
 public Zauzimanje(System.Guid sifraTima, System.Guid sifraTerena, System.DateTime zauzimanjeTerena, System.DateTime oslobadanjeTerena, Namena namena, string primedbe, Enumeration.Status status)
 {
     this.primedbe          = primedbe;
     this.namena            = namena;
     this.oslobadanjeTerena = oslobadanjeTerena;
     this.zauzimanjeTerena  = zauzimanjeTerena;
     this.sifraTerena       = sifraTerena;
     this.sifraTima         = sifraTima;
     this.status            = status;
     this.sifra             = Guid.NewGuid();
 }