Example #1
0
 public RecipeInfoViewModel(Product obj, RecipePageViewModel obj2)
 {
     SelectedRecipe     = obj;
     Name_Recipe        = SelectedRecipe.Name;
     Description_Recipe = SelectedRecipe.Description;
     Cal_Recipe         = SelectedRecipe.Calorific;
     Protein_Recipe     = SelectedRecipe.Protein;
     Fat_Recipe         = SelectedRecipe.Fat;
     Carb_Recipe        = SelectedRecipe.Carbs;
     Recipe             = GetIngtedientsForRecipe(SelectedRecipe.ID);
     boss_page          = obj2;
 }
        public AllRecipeViewModel(RecipePageViewModel obj)
        {
            All_Recipe = GetAllRecipe();

            Obj = obj;
        }