public IActionResult Create(WSProduct model) { if (ModelState.IsValid) { _workshopRepository.AddProduct(model); return(RedirectToAction(nameof(Index))); } return(View(model)); }