30117125 4 år sedan
förälder
incheckning
7e9a75b53a

+ 1
- 1
UnivateProperties_API/Repository/Properties/PropertyRepository.cs Visa fil

@@ -582,7 +582,7 @@ namespace UnivateProperties_API.Repository.Properties
582 582
 
583 583
         public List<PropertyDisplay> GetLatestDisplay()
584 584
         {
585
-            List<Property> props = GetAll().Where(x => x.Published).OrderByDescending(x => x.DatePublished).Take(3).ToList();
585
+            List<Property> props = GetAll().Where(x => x.Published).OrderByDescending(x => x.DatePublished).Take(4).ToList();
586 586
             return GetDisplayDetails(props);
587 587
         }
588 588
 

+ 2
- 2
UnivateProperties_API/Startup.cs Visa fil

@@ -52,7 +52,7 @@ namespace UnivateProperties_API
52 52
             services.AddAutoMapper();
53 53
             services.AddCors(o => o.AddPolicy("MyPolicy", builder =>
54 54
             {
55
-                builder.AllowAnyOrigin()
55
+                builder.AllowAnyOrigin()                        
56 56
                        .AllowAnyMethod()
57 57
                        .AllowAnyHeader();                       
58 58
             }));            
@@ -181,7 +181,7 @@ namespace UnivateProperties_API
181 181
             {
182 182
                 app.UseDeveloperExceptionPage();
183 183
             }
184
-            app.UseCors(x => x
184
+            app.UseCors(x => x                
185 185
                 .AllowAnyOrigin()
186 186
                 .AllowAnyMethod()
187 187
                 .AllowAnyHeader());                

Laddar…
Avbryt
Spara