public RecipeService() { rp = new RecipeRepo(); irp = new IngredientRepo(); mrp = new MemberRepo(); orp = new OthersRepo(); }
public IActionResult Add(Recipe recipe) { if (ModelState.IsValid) { RecipeRepo.AddResponse(recipe); return(View("Details", RecipeRepo.Responses)); } return(View(recipe)); }
private void SetRepo() { _ingredientRepo = new IngredientRepo(_context); _tableRepo = new TableRepo(_context); _reservationRepo = new ReservationRepo(_context); _categoryRepo = new CategoryRepo(_context); _salesRepo = new SaleRepo(_context); _occupancyRepo = new OccupanciesRepo(_context); _recipeRepo = new RecipeRepo(_context); _productRepo = new ProductRepo(_context); _supplierRepo = new SupplierRepo(_context); _subCategoryRepo = new SubCategoryRepo(_context); _logRepo = new LogRepo(_context); }
public RecipeService(RecipeRepo rr, UserRepo ur) { _rRepo = rr; _uRepo = ur; }
public CatService(CategoryRepo cr, RecipeRepo rr, UserRepo ur) { _cRepo = cr; _rRepo = rr; _uRepo = ur; }
public MenuRecipeService(MenuRecipeRepo mrr, MenuRepo mr, RecipeRepo rr) { _mrRepo = mrr; _mRepo = mr; _rRepo = rr; }
public RecipeController() { rr = new RecipeRepo(); }
public void TestInit() { repo = new RecipeRepo(); }