Пример #1
0
 public int UserUpdateFoodMenu(int menuMealTimeFoodXRefID, Food food)
 {
     return 0;
 }
Пример #2
0
        public int UserUpdateFoodMenu(int menuMealTimeFoodXRefID, Food food)
        {
            spUserProgramDayMealTimeFoodXRefUpdate_Result result=null;

            using (var context = new NutritionEntities())
            {               
                result = context.spUserProgramDayMealTimeFoodXRefUpdate(menuMealTimeFoodXRefID, food.FoodID, food.Carbohydrate, food.Protein, food.Fat, food.Calories, food.Qty).FirstOrDefault();                                
            }

            return result!=null ?result.RowCount:0;
        }