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

Listing Fee Update

master
30117125 преди 4 години
родител
ревизия
21a3b38c74
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      UnivateProperties_API/Repository/Financial/ListingRepository.cs

+ 2
- 1
UnivateProperties_API/Repository/Financial/ListingRepository.cs Целия файл

@@ -36,7 +36,8 @@ namespace UnivateProperties_API.Repository.Financial
36 36
                 else
37 37
                 {
38 38
                     fee.Id = 1;
39
-                    _dbContext.ListingFees.Update(fee);
39
+                    hasFee.Amount = fee.Amount;
40
+                    _dbContext.ListingFees.Update(hasFee);
40 41
                     _dbContext.SaveChanges();
41 42
                     return fee;
42 43
                 }

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