示例#1
0
        public AdController(SludinajumiContext context)
        {
            _context = context;
            _context.Database.EnsureCreated();
            _context.SaveChanges();

            if (_context.Ads.Count() == 0)
            {
                _context.SaveChanges();
            }
        }
示例#2
0
 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;
 }
示例#3
0
 public CategoryPropertiesController(SludinajumiContext context)
 {
     this.context = context;
 }
示例#4
0
 public HomeController(SludinajumiContext context)
 {
     this.context = context;
 }
示例#5
0
 public DashboardController(SludinajumiContext context)
 {
     this.context = context;
 }
示例#6
0
 public AdController(SludinajumiContext context, UserManager <ApplicationUser> userManager)
 {
     this.context     = context;
     this.userManager = userManager;
 }
示例#7
0
 public CategoryController(SludinajumiContext context)
 {
     _context = context;
 }