public UsuarioController(ICRUD_Personal personal, IMapper mapper, SISGEH_DbContext context) { //... _personal = personal; _mapper = mapper; _context = context; }
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"]); }