public async Task <IActionResult> CreateConfirmed(VariantViewModel variantVm)
        {
            if (ModelState.IsValid)
            {
                if (!_variantRepository.VariantExists(variantVm.WisId))
                {
                    try
                    {
                        var variant = VariantViewModel.CreateVariant(variantVm);
                        if (variant != null)
                        {
                            await _variantRepository.InsertVariant(variant);

                            await _variantRepository.SaveChanges();

                            VariantViewModel.ActiveVariantId = variant.Id;
                        }
                    }
                    catch (DbUpdateConcurrencyException) { }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View());
        }