public ActionResult Edit(CarDiagramModel model)
        {
            if (ModelState.IsValid)
            {
                var entity = _mapper.Map<CarDiagram>(model);
                string error = _carDiagramService.Update(entity);

                if (error != null)
                {
                    ModelState.AddModelError(string.Empty, error);
                    return View(model);
                }
                return RedirectToAction("Index");
            }
            else
            {
                ModelState.AddModelError(string.Empty, LocalResources.Resource.CannotInsertData);
                return View(model);
            }
        }