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