public CepService
     (ICepRepository repository,
     IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
示例#2
0
        public async Task <ActionResult <Endereco> > Buscar(
            [FromServices] ICepRepository enderecoService,
            [FromBody] CepViewModel model)
        {
            var endereco = await enderecoService.Buscar(model.Cep);

            return(endereco);
        }
示例#3
0
 public ActivityService(ICepRepository repository,
                        IActivityProcessor processor,
                        ILinkProcessor linkProcessor,
                        IGraphProcessor graphProcessor)
 {
     _repository        = repository;
     _activityProcessor = processor;
     _linkProcessor     = linkProcessor;
     _graphProcessor    = graphProcessor;
 }
示例#4
0
 public ConsultaCepController(IConfiguration config, ICepRepository repository)
 {
     _config     = config;
     _repository = repository;
 }
示例#5
0
 public CepService(ICepRepository repository, IViaCepService viaCepService)
 {
     _repository    = repository;
     _viaCepService = viaCepService;
 }
 public LinkService(ICepRepository repository)
 {
     _repository = repository;
 }
示例#7
0
 public PRocessController(ICepRepository repository)
 {
     _repository = repository;
 }