public async Task <Opportunity> GetById(int id) { return(await _opportunityRepository.GetById(id)); }
public async Task <OpportunityResponse> GetById(int id) { var opportunity = await _opportunityRepository.GetById(id); return(_mapper.Map <OpportunityResponse>(opportunity)); }
public Opportunity GetById(int id) { return(_opportunityRepository.GetById(id)); }