public AdController(SludinajumiContext context) { _context = context; _context.Database.EnsureCreated(); _context.SaveChanges(); if (_context.Ads.Count() == 0) { _context.SaveChanges(); } }
public AccountController( UserManager <ApplicationUser> userManager, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions, SignInManager <ApplicationUser> signInManager, RoleManager <IdentityRole> roleManager, SludinajumiContext context, IHostingEnvironment env) { _userManager = userManager; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; _signInManager = signInManager; _roleManager = roleManager; _context = context; _env = env; }
public CategoryPropertiesController(SludinajumiContext context) { this.context = context; }
public HomeController(SludinajumiContext context) { this.context = context; }
public DashboardController(SludinajumiContext context) { this.context = context; }
public AdController(SludinajumiContext context, UserManager <ApplicationUser> userManager) { this.context = context; this.userManager = userManager; }
public CategoryController(SludinajumiContext context) { _context = context; }