Пример #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);
        }