public StaffNamesController(VisitorDbContext context, ITextFileOperations textFileOperations, IDataBaseCalls dataBaseCalls, IFileProvider fileProvider) { _textFileOperations = textFileOperations; _dataBaseCalls = dataBaseCalls; _fileProvider = fileProvider; _context = context; }
public VisitorsAPI2Controller(VisitorDbContext context) { _context = context; }
public StaffNamesController(VisitorDbContext context) { _context = context; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, VisitorDbContext visitorContext) { visitorContext.Database.EnsureCreated(); loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseIdentity(); // Add external authentication middleware below. To configure them please see https://go.microsoft.com/fwlink/?LinkID=532715 app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); }
public DataBaseCalls(VisitorDbContext context) { _context = context; }
public VisitorController(VisitorDbContext visitorContext) { _newContext = visitorContext; }
public VisitorsController(VisitorDbContext context, IDataBaseCalls dataBaseCalls) { _context = context; _dataBaseCalls = dataBaseCalls; }
public HomeController(VisitorDbContext context, ITextFileOperations textFileOperations, IDataBaseCalls dataBaseCalls) { _textFileOperations = textFileOperations; _dataBaseCalls = dataBaseCalls; _context = context; }
public TextFileOperations(VisitorDbContext context, IHostingEnvironment hostingEnvironment, IHttpContextAccessor httpContextAccessor) { _environment = hostingEnvironment; _httpContextAccessor = httpContextAccessor; _context = context; }
public VisitorAPIController(Services.ITextFileOperations textFileOperation, VisitorDbContext context) { _context = context; TextFileOperation = textFileOperation; }
public HomeController(ITextFileOperations textFileOperations, VisitorDbContext context) { _textFileOperations = textFileOperations; _context = context; }