// GET: Creature public ActionResult Index() { try { return(View(_creatureManager.RetrieveCreatureList())); } catch (Exception ex) { return(RedirectToAction("Index", "Error", new { message = ex.Message, stackTrace = ex.StackTrace })); } }
/// <summary> /// Refreshes the creature list and datagrid /// </summary> private void refreshCreatureList() { try { _creatureList = _creatureManager.RetrieveCreatureList(); dgCreatures.ItemsSource = _creatureList; } catch (Exception ex) { var message = ex.Message + "\n\n" + ex.InnerException; MessageBox.Show(message, "Creature Retrieval Error!", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }