public IActionResult EditOrAddIngredient(Produkt ingredient)
        {
            if (_repository.CheckUniqueValue(ingredient.ProduktNamn) == false)
            {
                ModelState.AddModelError("ProduktNamn", "Name must be unique");
            }

            if (ModelState.IsValid)
            {
                _repository.SaveIngredient(ingredient);

                return(RedirectToAction("Index"));
            }

            return(View(ingredient));
        }