public BaseViewModel() { _jsonParserService = new JsonParserService(); _daoInstance = DaoSweetRecipes.Instance; _daoscheduledRecipe = DaoScheduledRecipe.Instance; _recommandationService = new RecommandationService(); }
public ActionResult DeleteRecommandation(int recommandation) { RecommandationService rs = new RecommandationService(); rs.SupprimerRecommandation(recommandation); return(RedirectToAction("Appointments")); }
public SalesHistoryController(DataContext context) { _context = context; this.recommandationService = new RecommandationService(context); }