Esempio n. 1
0
        /// <summary>
        /// This is called when you select a product from the autocomplete list.
        /// </summary>
        /// <param name="Code"></param>
        /// <param name="date"></param>
        /// <returns></returns>
        public ActionResult SelectFood(string code, int mealId)
        {
            _ingredientServices.CreateIngredient(code, mealId);

            var viewModel = GetMealModel(mealId);

            return(PartialView("IngredientsTable", viewModel));
        }