public async Task <IEnumerable <AgendamentoDto> > Consultar(string cpf) { var agendamentos = await _agendamentoService.ConsultarPorCpf(cpf); return(_mapper.Map <IEnumerable <Agendamento>, IEnumerable <AgendamentoDto> >(agendamentos)); }
public async Task <IEnumerable <AgendamentoDto> > Consultar(string cpf) { var agendamentos = await _agendamentoService.ConsultarPorCpf(cpf); return(_mapper.Map <IEnumerable <Agendamento>, IEnumerable <AgendamentoDto> >(agendamentos)); }