Пример #1
0
 public HomeController(mayankdbContext context, IConfiguration Configuration)
 {
     _context           = context;
     _configuration     = Configuration;
     dbConnectionString = _configuration["DBStrings"];
     publicKey          = _configuration["PublicKey"];
     privateKey         = _configuration["PrivateKey"];
     smsUrl             = _configuration["SmsUrl"];
     smsKey             = _configuration["SmsKey"];
     senderId           = _configuration["SenderId"];
     route   = _configuration["Route"];
     number  = _configuration["Number"];
     message = _configuration["Message"];
 }
Пример #2
0
 public HomeController(mayankdbContext context, IConfiguration Configuration, ILogger <DebugLogger> logger)
 {
     _context           = context;
     _configuration     = Configuration;
     this.logger        = logger;
     dbConnectionString = _configuration["DBStrings"];
     publicKey          = _configuration["PublicKey"];
     privateKey         = _configuration["PrivateKey"];
     smsUrl             = _configuration["SmsUrl"];
     smsKey             = _configuration["SmsKey"];
     senderId           = _configuration["SenderId"];
     route           = _configuration["Route"];
     number          = _configuration["Number"];
     message         = _configuration["Message"];
     SMTPPasswordAPI = _configuration["SMTPPasswordAPI"];
     //Subject = "This is test mail using smtp settings";
     //Body = "SendGrid Mail";
     //ToEmail = "*****@*****.**";
     //SMTPUser = "******";
     //SMTPPassword = "******";
 }