From 0dd53773a470418ddb9784ef191983b9c22e251e Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Mon, 22 Jul 2024 17:40:16 -0700 Subject: [PATCH] revert code changes --- api/Controllers/LocationController.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/api/Controllers/LocationController.cs b/api/Controllers/LocationController.cs index 9ba70a33..ff2db7c9 100644 --- a/api/Controllers/LocationController.cs +++ b/api/Controllers/LocationController.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; @@ -32,8 +31,6 @@ public async Task>> GetLocationsAndCourtRooms() { var locations = await _locationService.GetLocations(); - Console.WriteLine("123"); - var locationList = locations.Select(location => new Location { Name = location.LongDesc, @@ -47,10 +44,10 @@ public async Task>> GetLocationsAndCourtRooms() foreach (var location in locationList) { location.CourtRooms = courtRooms.Where(cr => cr.Flex == location.LocationId && (cr.ShortDesc == "CRT" || cr.ShortDesc == "HGR")) - .Select(cr => new CourtRoom { LocationId = cr.Flex, Room = cr.Code, Type = cr.ShortDesc }).ToList(); + .Select(cr => new CourtRoom {LocationId = cr.Flex, Room = cr.Code, Type = cr.ShortDesc}).ToList(); } return Ok(locationList); } } -} +} \ No newline at end of file