Beispiel #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, CHSRContext context)
        {
            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseDatabaseErrorPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseCookiePolicy();

            app.UseStaticFiles(new StaticFileOptions
            {
                FileProvider = new PhysicalFileProvider(
                    Path.Combine(Directory.GetCurrentDirectory(), "node_modules")),
                RequestPath = "/node_modules"
            });

            app.UseAuthentication();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
 public AdmissionApplicationController(CHSRContext context, FileAddRemoveService fileService)
 {
     _context     = context;
     _fileService = fileService;
 }
 public ResourcePersonsController(CHSRContext context, FileAddRemoveService fileUpService)
 {
     _context     = context;
     _fileService = fileUpService;
 }
Beispiel #4
0
 public SubSpecializationsController(CHSRContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public DepartmentsController(CHSRContext context)
 {
     _context = context;
 }
 public SessionsController(CHSRContext context)
 {
     _context = context;
 }
 public InstitutesController(CHSRContext context)
 {
     _context = context;
 }
Beispiel #8
0
 public FacultiesController(CHSRContext context)
 {
     _context = context;
 }