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 +}