2 커밋

작성자 SHA1 메시지 날짜
  Lene 97265ff51c Merge branch 'master' of http://provision-sa.co.za:3000/Provision/UnivatePropertiesAPI 4 년 전
  Lene b63705ccb0 Timehsare Admin Page 4 년 전

+ 2
- 0
UnivateProperties_API/Containers/Timeshare/Detailed/DetailedWeekDto.cs 파일 보기

@@ -42,6 +42,7 @@ namespace UnivateProperties_API.Containers.Timeshare.Detailed
42 42
             Mandate = week.Mandate;
43 43
             Status = week.Status.Display;
44 44
             Owner = week.Owner != null ? new DetailedOwner(week.Owner) : new DetailedOwner();
45
+            Region = new RegionDto(week.Region.Code, week.Region.Description);
45 46
         }
46 47
 
47 48
         public int Id { get; set; }
@@ -74,5 +75,6 @@ namespace UnivateProperties_API.Containers.Timeshare.Detailed
74 75
         public bool Mandate { get; set; }
75 76
         public string Status { get; set; }
76 77
         public DetailedOwner Owner { get; set; }
78
+        public RegionDto Region { get; set; }
77 79
     }
78 80
 }

+ 1
- 1
UnivateProperties_API/Controllers/Timeshare/TimeshareWeekController.cs 파일 보기

@@ -91,7 +91,7 @@ namespace UnivateProperties_API.Controllers.Timeshare
91 91
             }
92 92
         }
93 93
 
94
-        [HttpPut("{id}")]
94
+        [HttpPut]
95 95
         public IActionResult Put([FromBody] TimeshareWeek item)
96 96
         {
97 97
             if (item != null)

Loading…
취소
저장