|
|
@@ -142,7 +142,8 @@ namespace UnivateProperties_API.Repository.ProccessFlow
|
|
142
|
142
|
foreach (BidItem item in bids)
|
|
143
|
143
|
{
|
|
144
|
144
|
BidItemDisplay bid = BidItemDisplay(item);
|
|
145
|
|
- list.Add(bid);
|
|
|
145
|
+ if (bid != null)
|
|
|
146
|
+ list.Add(bid);
|
|
146
|
147
|
}
|
|
147
|
148
|
return list;
|
|
148
|
149
|
}
|
|
|
@@ -469,6 +470,9 @@ namespace UnivateProperties_API.Repository.ProccessFlow
|
|
469
|
470
|
|
|
470
|
471
|
if (item.PropertyId != null)
|
|
471
|
472
|
{
|
|
|
473
|
+ if (item.Property == null)
|
|
|
474
|
+ return null;
|
|
|
475
|
+
|
|
472
|
476
|
bid.Type = "Property";
|
|
473
|
477
|
bid.ShortDescription = item.Property.ShortDescription;
|
|
474
|
478
|
bid.Description = item.Property.Description;
|
|
|
@@ -476,6 +480,9 @@ namespace UnivateProperties_API.Repository.ProccessFlow
|
|
476
|
480
|
}
|
|
477
|
481
|
if (item.TimeshareWeekId != null)
|
|
478
|
482
|
{
|
|
|
483
|
+ if (item.TimeshareWeek == null)
|
|
|
484
|
+ return null;
|
|
|
485
|
+
|
|
479
|
486
|
bid.Type = "Timeshare";
|
|
480
|
487
|
bid.ShortDescription = string.Format("{0} {1} {2}", item.TimeshareWeek.ResortCode, item.TimeshareWeek.WeekNumber, item.TimeshareWeek.UnitNumber);
|
|
481
|
488
|
bid.SellPrice = (decimal)item.TimeshareWeek.SellPrice;
|