// // GET: /Manufacturers/Details/5 public ActionResult Details(int id) { // Attempt to fetch the desired object var fetchedObject = m.GetManufacturerById(id); if (fetchedObject == null) { return(RedirectToAction("index")); } else { return(View(fetchedObject)); } }