// GET: Warranty/Details/5 public ActionResult Details(int id) { var warrantyModel = _warrantyService.GetById(id, new string[] { "Asset" }); if (warrantyModel == null) { return(HttpNotFound()); } var viewModel = Mapper.Map <Warranty, WarrantyViewModel>(warrantyModel); return(View(viewModel)); }