public ShoppingCartController(IRecipeContext context, IHttpContextAccessor httpContextAccessor)
        {
            _context = context;
            _session = httpContextAccessor.HttpContext.Session;

            if (!_session.Keys.Contains("shoppingCartItems"))
            {
                SetShoppingCartItems(new List <Ingredient>());
            }
        }
Beispiel #2
0
 public SearchController(IRecipeContext context)
 {
     db = context;
 }
Beispiel #3
0
 public IngredientController(IRecipeContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public RecipeRepository(IRecipeContext context)
 {
     _context = context;
 }
 public RecipeController(IRecipeContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public RecipesController(IRecipeContext context)
 {
     db = context;
 }