// // GET: War // Displays past and current wars in edit mode public ActionResult EditMode() { List<War> currWars = WarManager.SelectCurrentWars(); List<War> pastWars = WarManager.SelectPastWars(); WarsViewModel model = new WarsViewModel(currWars, pastWars, editMode: true); return View("Index", model); }
// // GET: War // Displays past and current wars public ActionResult Index() { List<War> currWars = WarManager.SelectCurrentWars(); List<War> pastWars = WarManager.SelectPastWars(); WarsViewModel model = new WarsViewModel(currWars, pastWars); return View(model); }