public PQRSDomain(IPQRSRepository Repository, IClientesRepository clienteRepository, IConfiguration _configuration) { _Repository = Repository; _cRepository = clienteRepository; Configuration = _configuration; senderMail = Configuration["MailServer:SenderMail"]; mailAdmon = Configuration["MailServer:MailAdmon"]; password = Configuration["MailServer:Password"]; host = Configuration["MailServer:Host"]; port = int.Parse(Configuration["MailServer:Port"]); ssl = bool.Parse(Configuration["MailServer:SSL"]); initializeSmtpClient(); }
public PQRSController() { string connectionString = ConfigurationManager.ConnectionStrings["SqlServices"].ConnectionString; _repository = new DALPQRSRepository(connectionString); }