예제 #1
0
        //
        // 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);
        }
예제 #2
0
        //
        // 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);
        }