public BPasswordRecovery(SIEContext context, IConfiguration configuration = null) { _context = context; _uPasswordRecovery = new UPasswordRecovery(context); if (configuration != null) { _sEmail = new EmailService(configuration); } }
public PersonController(SIEContext context, IConfiguration configuration) { _bHistory = new BHistory(context); _bPerson = new BPerson(context); _bPasswordRecovery = new BPasswordRecovery(context, configuration); _bInstitution = new BInstitution(context); _uPerson = new UPerson(context); _uRecoveryPassword = new UPasswordRecovery(context); _uInstitution = new UInstitution(context); _configuration = configuration; }