// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddOptions(); services.AddRazorPages(); services.AddControllersWithViews(); services.AddMvc() .AddRazorPagesOptions(options => { options.Conventions.AddPageRoute("/Home", ""); }); ConfigureDbContext(services); ServiceInjector.Inject(services); }