Exemplo n.º 1
0
        public ActionResult Index(bool built = false)
        {
            ViewBag.RegionBuilt = built;

            RegionBuilderViewModel viewModel = new RegionBuilderViewModel();

            return View("Index", viewModel);
        }
Exemplo n.º 2
0
        public ActionResult BuildRegion(RegionBuilderViewModel viewModel)
        {
            if (this.ModelState.IsValid)
            {
                this._regionBuilder.BuildRegions(viewModel.X.Value, viewModel.Y.Value, viewModel.Size.Value);

                return this.Index(true);
            }

            return this.Index();
        }