public ActionResult Create(VehicleModelView models) { try { if (ModelState.IsValid) { model.Create(Mapper.Map <VehicleModel>(models)); return(RedirectToAction("Index")); } } catch (DataException) { } return(RedirectToAction("Create")); }