public async Task <IActionResult> Create() { ViewData["CountryId"] = new SelectList(await _repository.GetCountries(), "Id", "Name"); ViewData["BankId"] = new SelectList(await _repository.GetBanks(), "Id", "Name"); ViewData["UniversityId"] = new SelectList(await _repository.GetUniversities(), "Id", "Name"); ViewData["StageId"] = new SelectList(await _repository.GetStages(), "Id", "Name"); ViewData["LevelId"] = new SelectList(await _repository.GetLevels(), "Id", "Name"); ViewData["LanguageId"] = new SelectList(await _repository.GetLanguages(), "Id", "Name"); ViewData["SpecializationId"] = new SelectList(await _repository.GetSpecializations(), "Id", "Name"); ViewData["AppUserId"] = new SelectList(await _repository.GetUsers(), "Id", "FullName"); ViewData["CollegeId"] = new SelectList(await _repository.GetColleges(), "Id", "Name"); return(View()); }
public async Task <IActionResult> Index() { return(View(await _repository.GetBanks())); }