// GET: Project/Create
        public IActionResult Create()
        {
            var ProjectTypeId = _unitOfWork.ProjectTypeRepository.GetAll().ToList();

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

            ViewBag.AddressCountry = new SelectList(country, "Name", "Name");


            return(View(new Project()));
        }
示例#2
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());
        }
        // GET: Events/Create
        public IActionResult Create()
        {
            var country = _commonServices.GetCountries();

            ViewBag.AddressCountry = new SelectList(country, "Id", "Name");
            var organization = _unitOfWork.OrganizationRepository.GetAll().ToList();

            ViewBag.Organization = new SelectList(organization, "Id", "Name");
            var campaign = _unitOfWork.CampaignRepository.GetAll().ToList();

            ViewBag.Campaign = new SelectList(campaign, "Id", "Name");
            var category = _unitOfWork.CampaignCategoryRepository.GetAll().ToList();

            ViewBag.Category = new SelectList(category, "Id", "Name");

            return(View());
        }
示例#5
0
        // GET: Volunteers/Create
        public IActionResult Create()
        {
            var country = _commonServices.GetCountries();

            ViewBag.AddressCountry = new SelectList(country, "Id", "Name");


            return(View());
        }