// GET: CityController/Create
        public ActionResult Create()
        {
            PeopleViewModel     pplVM  = _peopleService.All();
            CreateCityViewModel cityVM = new CreateCityViewModel();

            cityVM.PersonInCity = pplVM.AllPeople;
            return(View(cityVM));
        }
        public IActionResult Add_View_People()
        {

            if (peopleViewModel == null)
            {
                peopleViewModel = ps.All();
            }

            //peopleViewModel = ps.All();
            return View(peopleViewModel);
        }
Exemplo n.º 3
0
        // GET: LanguageController/Create
        public ActionResult CreateLanguage()
        {
            CreateLanguageViewModel clVM     = new CreateLanguageViewModel();
            PeopleViewModel         peopleVM = new PeopleViewModel();

            peopleVM        = _peopleService.All();
            clVM.PeopleList = peopleVM.AllPeople;
            return(View(clVM));
        }