Exemplo n.º 1
0
 public UsuarioController(ICRUD_Personal personal, IMapper mapper, SISGEH_DbContext context)
 {
     //...
     _personal = personal;
     _mapper   = mapper;
     _context  = context;
 }
Exemplo n.º 2
0
 public CRUD_Personal(SISGEH_DbContext dbcontext, IMapper mapper, IHashService hashService,
                      IDataProtectionProvider protectionProvider, IConfiguration configuration)
 {
     //....
     _dbcontext   = dbcontext;
     _mapper      = mapper;
     _hashService = hashService;
     _protector   = protectionProvider.CreateProtector(configuration["Encriptando:key"]);
 }