public IActionResult Create()
        {
            var countries  = _addressService.GetCountries();
            var placeTypes = _placesService.GetTypes();
            var user       = _userManager.GetUserId(User);
            var facilities = _facilitiesServices.GetFacilities();

            ViewBag.UserId     = user;
            ViewBag.Countries  = countries;
            ViewBag.Types      = placeTypes;
            ViewBag.Facilities = facilities;

            return(View());
        }
Exemplo n.º 2
0
        public List <CountryDTO> GetCountries()
        {
            var countries = _addressService.GetCountries();

            return(countries);
        }