public IDomainObject VratiObjekat(SqlDataReader reader)
 {
     try
     {
         NacinPlacanja placanje = new NacinPlacanja();
         while (reader.Read())
         {
             placanje.Id            = (long)reader[0];
             placanje.NazivPlacanja = reader[1].ToString();
             break;
         }
         return(placanje);
     }
     catch (Exception)
     {
         return(null);
     }
 }
 public List <IDomainObject> VratiListu(SqlDataReader reader)
 {
     try
     {
         List <IDomainObject> placanja = new List <IDomainObject>();
         while (reader.Read())
         {
             NacinPlacanja placanje = new NacinPlacanja
             {
                 Id            = (long)reader[0],
                 NazivPlacanja = reader[1].ToString()
             };
             placanja.Add(placanje);
         }
         return(placanja);
     }
     catch (Exception)
     {
         return(null);
     }
 }