示例#1
0
 public HomeController(IRecipe recipe, IInstruction instructions, IIngredient ingredient, IComment comment, ISavedRecipe savedRecipe)
 {
     _Recipe      = recipe;
     _Instruction = instructions;
     _Ingredient  = ingredient;
     _Comment     = comment;
     _SavedRecipe = savedRecipe;
 }
示例#2
0
 public RecipesController(IIngredient ingredient, IInstruction instruction, IRecipe recipe, ISavedRecipe savedRecipe, SignInManager <ApplicationUser> signInManager)
 {
     _Ingredient    = ingredient;
     _Instruction   = instruction;
     _Recipe        = recipe;
     _SavedRecipe   = savedRecipe;
     _SignInManager = signInManager;
 }
示例#3
0
 public SavedRecipeController(ISavedRecipe context)
 {
     _context = context;
 }
示例#4
0
 public SavedRecipesController(ISavedRecipe savedRecipe, UserManager <ApplicationUser> userManager, IRecipe recipe, IInstruction instruction, IIngredient ingredient)
 {
     _Context       = savedRecipe;
     _UserManager   = userManager;
     _RecipeContext = recipe;
 }