Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This method gets called by the runtime. Use this method to add services to the container.
- public void ConfigureServices(IServiceCollection services)
- {
- // Add framework services.
- services.AddDbContext<ApplicationDbContext>(options =>
- options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
- services.AddMvc();
- // Add application services.
- services.AddTransient<IEmailSender, EmailSender>();
- }
Add Comment
Please, Sign In to add comment