Beispiel #1
0
 private void FillViewBagWithTypes()
 {
     ViewBag.RecipeTypes     = new SelectList(typeHandler.GetRecipeTypes().OrderBy(t => t.Name), "Id", "Name");
     ViewBag.CookingTypes    = new SelectList(typeHandler.GetCookingTypes().OrderBy(t => t.Name), "Id", "Name");
     ViewBag.DishTypes       = new SelectList(typeHandler.GetDishTypes().OrderBy(t => t.Name), "Id", "Name");
     ViewBag.IngredientTypes = new SelectList(typeHandler.GetIngredientTypes().OrderBy(t => t.Name), "Id", "Name");
 }