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