Преглед на файлове

Display error in property Repository

master
George Williams преди 5 години
родител
ревизия
b631d7fab8
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      UnivateProperties_API/Repository/Properties/PropertyRepository.cs

+ 2
- 2
UnivateProperties_API/Repository/Properties/PropertyRepository.cs Целия файл

134
 
134
 
135
             foreach (string prop in property.GetAllProperties())
135
             foreach (string prop in property.GetAllProperties())
136
             {
136
             {
137
-                if (prop != "Item")
137
+                if (prop != "Item" && prop != "Display")
138
                     propertyDetails[prop] = property[prop];
138
                     propertyDetails[prop] = property[prop];
139
             }            
139
             }            
140
 
140
 
211
             var property = new Property();
211
             var property = new Property();
212
             foreach (string prop in property.GetAllProperties())
212
             foreach (string prop in property.GetAllProperties())
213
             {
213
             {
214
-                if (prop != "Item")
214
+                if (prop != "Item" && prop != "Display")
215
                     property[prop] = item[prop];
215
                     property[prop] = item[prop];
216
             }
216
             }
217
 
217
 

Loading…
Отказ
Запис