Esempio n. 1
0
        // GET: Volunteers/Create
        public IActionResult Create()
        {
            var country = _commonServices.GetCountries();

            ViewBag.AddressCountry = new SelectList(country, "Id", "Name");
            // var states = _commonServices.GetStates(CountryId);
            //ViewBag.AddressState = new SelectList(state, "Id", "Name");
            var phoneisd = _commonServices.GetPhoneCode();

            ViewBag.PhoneCode = new SelectList(phoneisd, "Id", "PhoneCode");


            return(View());
        }
        // GET: Contacts/Create
        public IActionResult Create()
        {
            var contactTypes = _unitOfWork.ContactTypeRepository.GetAll().ToList();

            ViewBag.ContactTypeId = new SelectList(contactTypes, "Id", "Name");
            var country = _commonServices.GetCountries();

            ViewBag.AddressCountry = new SelectList(country, "Id", "Name");
            var phoneisd = _commonServices.GetPhoneCode();

            ViewBag.PhoneCode = new SelectList(phoneisd, "Id", "PhoneCode");


            return(View());
        }