Example #1
0
 public UserDataAccessor(
     RegisteredUserData registeredUserData,
     NotLoggedInUserData notLoggedInUserData)
 {
     this.registeredUserData  = registeredUserData;
     this.notLoggedInUserData = notLoggedInUserData;
 }
Example #2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline... adds middleware components
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseMvc();

            UserModelData.Initialize(app);
            StudentRegisterationsData.Initialize(app);
            UserData.Initialize(app);
            RegisteredUserData.Initialize(app);
        }