Пример #1
0
 public IngredientsController(UserManager <ApplicationUser> userManager, RecipeBoxContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
 public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, RecipeBoxContext db)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _db            = db;
 }
Пример #3
0
 public TagsController(RecipeBoxContext db)
 {
     _db = db;
 }
Пример #4
0
 public CategoriesController(UserManager <ApplicationUser> userManager, RecipeBoxContext db)
 {
     _userManager = userManager;
     _db          = db;
 }
Пример #5
0
 public RecipesController(RecipeBoxContext context)
 {
     _context = context;
 }
Пример #6
0
 public HomeController(RecipeBoxContext db)
 {
     _db = db;
 }
 public CategoriesController(RecipeBoxContext db)
 {
     _db = db;
 }
Пример #8
0
 public RecipesController(UserManager <ApplicationUser> userManager, RecipeBoxContext db)
 {
     _db          = db;
     _userManager = userManager;
 }
Пример #9
0
 public IngredientsController(RecipeBoxContext db)
 {
     _db = db;
 }
 public CuisinesController(RecipeBoxContext db)
 {
     _db = db;
 }
Пример #11
0
 private readonly RecipeBoxContext _db;           // Defining the Database as Template
 public CategoriesController(RecipeBoxContext db) //constructor for the controller
 {
     _db = db;
 }