From 1cb0fb842e515b1a99faebf05b87c136e7802d40 Mon Sep 17 00:00:00 2001 From: Anibal Velarde Date: Wed, 22 Sep 2021 10:12:08 -0500 Subject: [PATCH] Update PlatformsController.cs I guess I'm OCD... --- PlatformService/Controllers/PlatformsController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PlatformService/Controllers/PlatformsController.cs b/PlatformService/Controllers/PlatformsController.cs index 0697aa5..ace0c69 100644 --- a/PlatformService/Controllers/PlatformsController.cs +++ b/PlatformService/Controllers/PlatformsController.cs @@ -37,9 +37,9 @@ public ActionResult> GetPlatforms() { Console.WriteLine("--> Getting Platforms...."); - var platformItem = _repository.GetAllPlatforms(); + var platformItems = _repository.GetAllPlatforms(); - return Ok(_mapper.Map>(platformItem)); + return Ok(_mapper.Map>(platformItems)); } [HttpGet("{id}", Name = "GetPlatformById")] @@ -88,4 +88,4 @@ public async Task> CreatePlatform(PlatformCreateDt return CreatedAtRoute(nameof(GetPlatformById), new { Id = platformReadDto.Id}, platformReadDto); } } -} \ No newline at end of file +}