public ActionResult Details(int id) { var part = _mapper.Map <PlanePartViewModel>(_service.GetPlanePart(id)); ViewBag.PlaneModel = _mapper.Map <PlaneModelViewModel>(_modelService.GetPlaneModel(part.PlaneModelId)); return(View("DetailsPlanePart", part)); }
public ActionResult Details(int id) { return(View("DetailsPlaneModel", _mapper.Map <PlaneModelViewModel>(_service.GetPlaneModel(id)))); }