Ejemplo n.º 1
0
        // GET : Township/New
        public ActionResult New()
        {
            var viewModel = new TownshipViewModel
            {
                Cities = _cityServcies.GetAll()
            };

            return(View("TownshipForm", viewModel));
        }
Ejemplo n.º 2
0
        // GET: City
        public ActionResult Index()
        {
            var cities = _cityServices.GetAll();

            return(View("List", cities));
        }