public EFProductRepository(MariosFoodsContext connection = null)
 {
     if (connection == null)
     {
         this.db = new MariosFoodsContext();
     }
     else
     {
         this.db = connection;
     }
 }
Esempio n. 2
0
 public ToDoController(UserManager <ApplicationUser> userManager, MariosFoodsContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
Esempio n. 3
0
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, MariosFoodsContext db)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _db            = db;
 }