public async Task <IActionResult> AddIngredients(CocktailViewModel model, Guid cocktailId) { if (ModelState.IsValid) { try { await cocktailServices.AddIngredientsToCocktail(cocktailId, model.IngredientIds); this.toast.AddSuccessToastMessage($"Successfully added to {model.Name}"); return(RedirectToAction("ListCocktails", "Cocktail", new { Area = "" })); } catch (Exception e) { this.toast.AddErrorToastMessage(Exceptions.SomethingWentWrong); return(RedirectToAction("ListCocktails", new { Area = "" })); } } return(NoContent()); }