public ActionResult <IEnumerable <CommandReadDto> > GetCommandsForPlatform(int platformId) { Console.WriteLine($"--> Hit {nameof(GetCommandForPlatform)}, platformId: {platformId}"); if (!_repo.PlatformExists(platformId)) { return(NotFound()); } var commands = _repo.GetCommandsForPlatform(platformId); var commandsReadDto = _mapper.Map <IEnumerable <CommandReadDto> >(commands); return(Ok(commandsReadDto)); }