Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit acc13f9

Browse files
rguthriemsftDavid Tesar
authored andcommitted
bug in poi api constructor (#102)
1 parent b985f93 commit acc13f9

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

apis/poi/web/Controllers/POIController.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@ public class POIController : ControllerBase
1616
public POIController(POIContext context)
1717
{
1818
_context = context;
19-
20-
if (_context.POIs.Count() == 0)
21-
{
22-
_context.POIs.Add(new POI
23-
{
24-
TripId = Guid.NewGuid().ToString(),
25-
Latitude = 0,
26-
Longitude = 0,
27-
PoiType = POIType.HardAcceleration,
28-
Timestamp = DateTime.Now,
29-
Deleted = false
30-
});
31-
_context.SaveChanges();
32-
}
3319
}
3420

3521
[HttpGet(Name = "GetAllPOIs")]

0 commit comments

Comments
 (0)