Example #1
0
 public HomeController(
     BibContext bibContext,
     UserManager <Benutzer> userManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
 }
Example #2
0
 public BuchController(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     IToastNotification toastNotification)
 {
     this.bibContext        = bibContext;
     this.userManager       = userManager;
     this.toastNotification = toastNotification;
 }
Example #3
0
 public DbInitializer(
     BibContext bibContext,
     UserManager <Benutzer> userManager,
     RoleManager <IdentityRole> roleManager)
 {
     this.bibContext  = bibContext;
     this.userManager = userManager;
     this.roleManager = roleManager;
 }
Example #4
0
 public BenutzerController(
     UserManager <Benutzer> userManager,
     SignInManager <Benutzer> signInManager,
     IToastNotification toastNotification,
     BibContext bibContext)
 {
     this.userManager       = userManager;
     this.signInManager     = signInManager;
     this.toastNotification = toastNotification;
     this.bibContext        = bibContext;
 }
Example #5
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, BibContext context, IServiceProvider service, DbInitializer dbInitializer)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }
            app.UseStaticFiles();

            app.UseAuthentication();
            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Benutzer}/{action=Login}/{id?}");
            });
            context.Database.EnsureCreated();
            ((DbInitializer)dbInitializer).Initialize().Wait();
        }
Example #6
0
        public static WarenkorbManager GetWarenkorbManager(Benutzer.Benutzer benutzer, BibContext bibContext)
        {
            var warenkorb = new WarenkorbManager(bibContext)
            {
                BenutzerName = benutzer.UserName
            };

            return(warenkorb);
        }
Example #7
0
 public WarenkorbManager(BibContext bibContext)
 {
     this.bibContext = bibContext;
 }
 public UnitOfWork(IDatabaseFactory dbFactory)
 {
     this.dbFactory = dbFactory;
     dataContext    = dbFactory.DataContext;
 }
Example #9
0
        public static LeihauftragManager GetLeihauftragManager(BibContext bibContext)
        {
            var cart = new LeihauftragManager(bibContext);

            return(cart);
        }
Example #10
0
 public LeihauftragManager(BibContext bibContext)
 {
     this.bibContext = bibContext;
 }
Example #11
0
 public GenderRepository(BibContext context)
 {
     this.bibContext = context;
 }
 public DatabaseFactory()
 {
     dataContext = new BibContext();
 }
Example #13
0
 public ReviewRepository(BibContext context)
 {
     this.bibContext = context;
 }
Example #14
0
 public LoanRepository(BibContext context)
 {
     this.bibContext = context;
 }
Example #15
0
 public AutorRepository(BibContext context)
 {
     this.bibContext = context;
 }
Example #16
0
 public BookRepository(BibContext context)
 {
     this.bibContext = context;
 }