Esempio n. 1
0
 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;
 }
Esempio n. 4
0
        // 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?}");
            });
        }
Esempio n. 5
0
 public DataBaseCalls(VisitorDbContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public VisitorController(VisitorDbContext visitorContext)
 {
     _newContext = visitorContext;
 }
 public VisitorsController(VisitorDbContext context, IDataBaseCalls dataBaseCalls)
 {
     _context       = context;
     _dataBaseCalls = dataBaseCalls;
 }
Esempio n. 8
0
 public HomeController(VisitorDbContext context, ITextFileOperations textFileOperations, IDataBaseCalls dataBaseCalls)
 {
     _textFileOperations = textFileOperations;
     _dataBaseCalls      = dataBaseCalls;
     _context            = context;
 }
Esempio n. 9
0
 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;
 }
Esempio n. 11
0
 public HomeController(ITextFileOperations textFileOperations, VisitorDbContext context)
 {
     _textFileOperations = textFileOperations;
     _context            = context;
 }