public ActionResult Create(ComponentCategoryViewModel componentCategoryViewModel)
        {
            try
            {
                _componentCategoryRepository.Insert(Mapper.Map<ComponentCategoryModel>(componentCategoryViewModel));

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult Edit(int id, ComponentCategoryViewModel model)
        {
            try
            {
                // TODO: Add update logic here

                _componentCategoryRepository.Update(Mapper.Map<ComponentCategoryModel>(model));

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }