public async Task <RedditDdDto> GetDbItem(int id) { var entity = await _stocksRepository.GetRedditDdEntity(id); if (entity != null) { var result = _mapper.Map <RedditDdDto>(entity); return(result); } return(null); }
public async Task <RedditDdDto> GetDbItem(int id) { var entity = await _stocksRepository.GetRedditDdEntity(id); if (entity != null) { var result = _mapper.Map <RedditDdDto>(entity); return(result); } return(null); }