Example #1
0
 public EmpresaAppService(IEmpresaService empresaService, ITelefoneService telefoneService, IEnderecoService enderecoService, IFuncionarioService funcionarioService)
 {
     _empresaService     = empresaService;
     _telefoneService    = telefoneService;
     _enderecoService    = enderecoService;
     _funcionarioService = funcionarioService;
 }
Example #2
0
 public SaveTelefonesController(ITelefoneService telefoneService, IUnitOfWork uokOfWork,
                                IUsuarioService usuarioService)
 {
     _telefoneService = telefoneService;
     _uokOfWork       = uokOfWork;
     _usuarioService  = usuarioService;
 }
 public PessoaFisicaApplication(
     IPessoaFisicaService pessoaFisicaService,
     ITelefoneService telefoneService,
     INotificador notificador) : base(notificador)
 {
     _pessoaFisicaService = pessoaFisicaService;
     _telefoneService     = telefoneService;
 }
 public PessoaJuridicaFornecedorService(IPessoaJuridicaFornecedorRepository repository,
                                        IFornecedorService clienteService,
                                        IEmailService emailService,
                                        IEnderecoService enderecoService,
                                        ITelefoneService telefoneService) : base(repository, emailService, enderecoService, telefoneService)
 {
     this.repository = repository;
 }
 public ClienteApplication(
     IPessoaFisicaService pessoaFisicaService,
     ITelefoneService telefoneService,
     INotificador notificador, IPessoaJuridicaService pessoaJuridicaService) : base(notificador)
 {
     _pessoaFisicaService   = pessoaFisicaService;
     _pessoaJuridicaService = pessoaJuridicaService;
 }
Example #6
0
 public PessoaFisicaService(IPessoaFisicaRepository repository,
                            IClienteService clienteService,
                            IEmailService emailService,
                            IEnderecoService enderecoService,
                            IIdentificacaoService identificacaoService,
                            ITelefoneService telefoneService) : base(repository, emailService, enderecoService, identificacaoService, telefoneService)
 {
     this.repository = repository;
 }
Example #7
0
 public TelefoneAppService
 (
     IMapper mapper,
     ITelefoneService telefoneService
 )
     : base(telefoneService, mapper)
 {
     _mapper          = mapper;
     _telefoneService = telefoneService;
 }
 public FornecedorService(IFornecedorRepository repository,
                          IEmailService emailService,
                          IEnderecoService enderecoService,
                          ITelefoneService telefoneService) : base(repository)
 {
     this.repository      = repository;
     this.emailService    = emailService;
     this.enderecoService = enderecoService;
     this.telefoneService = telefoneService;
 }
Example #9
0
 public LojaService(ILojaRepository repository,
                    IEmailService emailService,
                    IEnderecoService enderecoService,
                    ITelefoneService telefoneService) : base(repository)
 {
     this.repository      = repository;
     this.emailService    = emailService;
     this.enderecoService = enderecoService;
     this.telefoneService = telefoneService;
 }
 public LojaAppService(ILojaService service,
                       IEmailService emailService,
                       IEnderecoService enderecoService,
                       ITelefoneService telefoneService,
                       IMapper mapper) : base(service, mapper)
 {
     this.service         = service;
     this.emailService    = emailService;
     this.enderecoService = enderecoService;
     this.telefoneService = telefoneService;
     this.mapper          = mapper;
 }
 public ClienteService(IClienteRepository repository,
                       IEmailService emailService,
                       IEnderecoService enderecoService,
                       IIdentificacaoService identificacaoService,
                       ITelefoneService telefoneService) : base(repository)
 {
     this.repository           = repository;
     this.emailService         = emailService;
     this.enderecoService      = enderecoService;
     this.identificacaoService = identificacaoService;
     this.telefoneService      = telefoneService;
 }
Example #12
0
 public TelefoneAppService(IUnitOfWork unitOfWork, ITelefoneService telefoneService) : base(unitOfWork)
 {
     _telefoneService = telefoneService;
 }
        public ActionResult CriarPessoaColaborador([FromServices] IGenericService <Pessoa> pessoaSvc,
                                                   [FromServices] IGenericService <Colaborador> colaboradorSvc,
                                                   [FromServices] IAcessoFerramentaService ferramentaSvc, [FromServices] ITelefoneService telSvc,
                                                   [FromServices] IAcessoSiglaService siglaSvc, [FromBody] PessoaColaborador pcv)
        {
            try
            {
                var novoColaborador = new Colaborador();
                if (pcv.pessoa.TipoId == 1)
                {
                    pcv.pessoa.EmpresaId = 1;
                }
                var novaPessoa = pessoaSvc.Adicionar(pcv.pessoa);
                pcv.colaborador.PessoaId = novaPessoa.Id;
                if (pcv.pessoa.TipoId == 1)
                {
                    novoColaborador = colaboradorSvc.Adicionar(pcv.colaborador);
                    var lstAcessoFerramenta = ferramentaSvc.AdicionarListaAcessoFerramenta(pcv.FerramentasAssociadas, novoColaborador.Id);
                    var lstAcessoSigla      = siglaSvc.AdicionarListaAcessoSigla(pcv.SiglasAssociadas, novoColaborador.Id);
                }

                var lstTelefone = telSvc.AdicionarTelefones(pcv.Telefones, novaPessoa.Id);

                return(Ok(new Retorno()
                {
                    Codigo = 200,
                    Data = new PessoaColaborador
                    {
                        pessoa = novaPessoa,
                        colaborador = novoColaborador,
                        Telefones = lstTelefone
                    }
                }));
            }
            catch (Exception ex)
            {
                return(BadRequest(new Retorno()
                {
                    Codigo = 500,
                    Mensagem = ex.Message
                }));
            }
        }
 public TelefoneRepositoryApp(ITelefoneService service)
 {
     _service = service;
 }
Example #15
0
 public TelefoneAppService(ITelefoneService telefoneService)
 {
     _telefoneService = telefoneService;
 }
Example #16
0
 public TelefoneAppService(ITelefoneService telefoneService, IUnitOfWork uow) : base(uow)
 {
     _telefoneService = telefoneService;
 }
 public TelefoneAppService(ITelefoneService baseService) : base(baseService)
 {
     _baseService = baseService;
 }
Example #18
0
 public TelefoneController(ITelefoneService service)
 {
     _service = service;
 }
Example #19
0
 public TelefoneApp(ITelefoneService telefoneService)
     : base(telefoneService)
 {
     _telefoneService = telefoneService;
 }
 public TelefoneController(ITelefoneService telService,
                           IAutenticacaoService autenticacaoService)
 {
     this._autenticacaoService = autenticacaoService;
     this._telService          = telService;
 }