public ActionResult Create(PartModel model)
        {
            try
            {
                var part = new SparePart();
                part.Name = model.Name;
                part.Price = model.Price;
                part.Active = model.Active;

                SparePartsManager.GetInstance().AddSparePart(part);

                return RedirectToAction("Index");
            }
            catch
            {
                return View(model);
            }
        }
        public ActionResult Edit(PartModel model)
        {
            try
            {
                var part = SparePartsManager.GetInstance().GetPartById(model.Id);
                part.Name = model.Name;
                part.Price = model.Price;
                part.Active = model.Active;

                SparePartsManager.GetInstance().Edit(part);
                return RedirectToAction("Index");
            }
            catch
            {
                return View(model);
            }
        }
        //
        // GET: /Parts/Create
        public ActionResult Create()
        {
            var model = new PartModel();

            return View(model);
        }