/*Funcion: Obtiene todas los productos Param: Return: Lista ProductsView */ public List<RecipeProcessView> getProcessForProduct(int idProducts) { RecipeService recipe = new RecipeService(); return recipe.getRecipeProcessForProduct(idProducts); }
/* Metodo que llena el drodownlist de procesos cuando se selecciona un producto */ private void fillProcess(int ProductSelected) { RecipeService recipeService = new RecipeService(); List<RecipeProcessView> recipeProcess = recipeService.getRecipeProcessForProduct(ProductSelected); Process2.DataSource = recipeProcess; Process2.DataBind(); ListItem l = new ListItem("", "", true); l.Selected = true; Process2.Items.Insert(0, l); }