public ActionResult Edit(StockItem model)
        {
            model.Product = null;
            ModelState.Clear();
            TryValidateModel(model);
            if (ModelState.IsValid)
            {
                _repository.SaveStockItem(model);
                return(RedirectToAction("list", new { id = "success" }));
            }

            return(View(model));
        }