public async Task <BaseResponse <IEnumerable <GraphicsCardDto> > > GetGraphicsCardsForComputer(Guid computerId) { if (!await _computerRepository.Exists(computerId)) { return(BaseResponse <IEnumerable <GraphicsCardDto> > .NotFound("Computer not found")); } var result = await _computerRepository.GetGraphicsCardsForComputer(computerId); return(new BaseResponse <IEnumerable <GraphicsCardDto> >((int)HttpStatusCode.OK, _mapper.Map <IEnumerable <GraphicsCardDto> >(result))); }