瀏覽代碼

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…
取消
儲存