Exemplo n.º 1
0
 public HomeController(NotiflyDbContext context, IConfiguration configuration)
 {
     _context         = context;
     YelpKey          = configuration.GetSection("APIKeys")["Yelp"];
     TwilioAccountSid = configuration.GetSection("APIKeys")["TwilioAccountSid"];
     TwilioAuthToken  = configuration.GetSection("APIKeys")["TwilioAuthToken"];
 }
Exemplo n.º 2
0
 public SmsController(IConfiguration configuration, NotiflyDbContext context)
 {
     TwilioAccountSid = configuration.GetSection("APIKeys")["TwilioAccountSid"];
     TwilioAuthToken  = configuration.GetSection("APIKeys")["TwilioAuthToken"];
     _context         = context;
 }