|
@@ -502,7 +502,8 @@ namespace UnivateProperties_API.Repository.Properties
|
502
|
502
|
private List<PropertyDisplay> GetDisplayDetails(List<Property> props)
|
503
|
503
|
{
|
504
|
504
|
var properties = new List<PropertyDisplay>();
|
505
|
|
- props = props.Where(p => p.Published).ToList();
|
|
505
|
+ //Removed publish check for now
|
|
506
|
+ //props = props.Where(p => p.Published).ToList();
|
506
|
507
|
foreach (var item in props)
|
507
|
508
|
{
|
508
|
509
|
PropertyDisplay display = new PropertyDisplay
|
|
@@ -582,7 +583,9 @@ namespace UnivateProperties_API.Repository.Properties
|
582
|
583
|
|
583
|
584
|
public List<PropertyDisplay> GetLatestDisplay()
|
584
|
585
|
{
|
585
|
|
- List<Property> props = GetAll().Where(x => x.Published).OrderByDescending(x => x.DatePublished).Take(3).ToList();
|
|
586
|
+ //Removed Published Check for now
|
|
587
|
+ //List<Property> props = GetAll().Where(x => x.Published).OrderByDescending(x => x.DatePublished).Take(3).ToList();
|
|
588
|
+ List<Property> props = GetAll().OrderByDescending(x => x.Created).Take(3).ToList();
|
586
|
589
|
return GetDisplayDetails(props);
|
587
|
590
|
}
|
588
|
591
|
|
|
@@ -619,7 +622,9 @@ namespace UnivateProperties_API.Repository.Properties
|
619
|
622
|
|
620
|
623
|
public List<PropertyList> GetPropertyList()
|
621
|
624
|
{
|
622
|
|
- return SetPropertyList(dBContext.Properties.Where(x => x.Published).ToList());
|
|
625
|
+ //Removed Published check for now
|
|
626
|
+ //return SetPropertyList(dBContext.Properties.Where(x => x.Published).ToList());
|
|
627
|
+ return SetPropertyList(dBContext.Properties.ToList());
|
623
|
628
|
}
|
624
|
629
|
|
625
|
630
|
private List<PropertyList> SetPropertyList(List<Property> properties)
|