Exemplo n.º 1
0
        public ActionResult <DeveloperReadDto> GetDeveloperAndGames(Guid developerId)
        {
            var developerItem = _repository.GetDeveloperAndGames(developerId);

            if (developerItem == null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <DeveloperReadDto>(developerItem)));
        }