public ActionResult Edit([Bind(Include = "Id,Name")] ComponentTypeVM componentTypeVM) { if (ModelState.IsValid) { ComponentTypeDTO componentTypeDTO = Mapper.Map <ComponentTypeDTO>(componentTypeVM); ComponentTypeService.Update(componentTypeDTO); return(RedirectToAction("Index")); } return(View()); }