Explorar el Código

Updated change of ownership for timeshare

master
30117125 hace 4 años
padre
commit
e95ad79e9b
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4
    1
      UnivateProperties_API/Repository/Timeshare/WeekRepository.cs

+ 4
- 1
UnivateProperties_API/Repository/Timeshare/WeekRepository.cs Ver fichero

@@ -409,7 +409,10 @@ namespace UnivateProperties_API.Repository.Timeshare
409 409
             {
410 410
                 saved.BankedWith = item.BankedWith;
411 411
             }
412
-
412
+            if (saved.OwnerId != item.OwnerId)
413
+            {
414
+                saved.OwnerId = item.OwnerId;
415
+            }
413 416
 
414 417
             if (saved.DisplayOwner != item.DisplayOwner)
415 418
             {

Loading…
Cancelar
Guardar