public VideoGame Get(int id) { //VideoGame videoGame = new VideoGame(); //videoGame.Developer = _videoGameRepo.GetDeveloperByVideoGameId(id).toLocal(); //videoGame = _videoGameRepo.Get(id).toLocal(); //return videoGame; VideoGame videoGame = new VideoGame(); videoGame = _videoGameRepo.Get(id).toLocal(); videoGame.Developer = _developerService.GetByVideoGameId(id); videoGame.Publisher = _publisherService.GetByVideoGameId(id); videoGame.plateforms = _plateform_VideoGameService.GetByVideoGameId(id); return(videoGame); }
public IActionResult Get(int id) { return(Ok(_plateform_VideoGameservice.GetByVideoGameId(id))); }