Exemplo n.º 1
0
 public async Task <Opportunity> GetById(int id)
 {
     return(await _opportunityRepository.GetById(id));
 }
Exemplo n.º 2
0
        public async Task <OpportunityResponse> GetById(int id)
        {
            var opportunity = await _opportunityRepository.GetById(id);

            return(_mapper.Map <OpportunityResponse>(opportunity));
        }
Exemplo n.º 3
0
 public Opportunity GetById(int id)
 {
     return(_opportunityRepository.GetById(id));
 }