public ActionResult Create( ModelSerieTypeCreateEditViewModel vm)
        {
            if (ModelState.IsValid)
            {
                _uow.ModelSerieTypes.Add(vm.ModelSerieType);
                _uow.Commit();
                return RedirectToAction("Index");
            }

            return View(vm);
        }
 // GET: ModelSerieTypes/Edit/5
 public ActionResult Edit(int? id)
 {
     if (id == null)
     {
         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
     }
     ModelSerieType modelSerieType = _uow.ModelSerieTypes.GetById(id);
     if (modelSerieType == null)
     {
         return HttpNotFound();
     }
     var vm = new ModelSerieTypeCreateEditViewModel()
     {
         ModelSerieType = modelSerieType
     };
     return View(vm);
 }
 // GET: ModelSerieTypes/Create
 public ActionResult Create()
 {
     var vm = new ModelSerieTypeCreateEditViewModel();
     return View(vm);
 }