// GET: Creature/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } try { Creature creature = _creatureManager.RetreiveCreatureByID(id); CreatureViewModel creatureViewModel = new CreatureViewModel { DisplayCreatureID = creature.CreatureID, DisplayCreatureDietID = creature.CreatureDietID, DisplayCreatureTypeID = creature.CreatureTypeID, Active = creature.Active }; return(View(creatureViewModel)); } catch (Exception ex) { return(RedirectToAction("Index", "Error", new { message = ex.Message, stackTrace = ex.StackTrace })); } }