public async Task <IActionResult> Create() { try { //review this block var ingr = await _ingredientServices.GetAllIngredientsNames(); var createCocktailVM = new CreateCocktailViewModel(); createCocktailVM.IngredientsNames.Add(new SelectListItem("Choose an igredient", "")); createCocktailVM.IngredientsNames.AddRange(ingr.Select(i => new SelectListItem(i, i))); return(View(createCocktailVM)); } catch (Exception ex) { _toast.AddErrorToastMessage(ex.Message); ViewBag.ErrorTitle = ""; return(View("Error")); } }