public async Task <IActionResult> Create() { ViewData["JopId"] = new SelectList(await _repository.GetJops(), "Id", "Name"); ViewData["UserId"] = new SelectList(await _repository.GetUsers(), "Id", "FullName"); return(View()); }
public async Task <IActionResult> Create() { ViewData["JopId"] = new SelectList(await _repository.GetJops(), "Id", "Name"); ViewData["SeasonId"] = new SelectList(await _repository.GetSeasons(), "Id", "Name"); ViewData["EmployeeId"] = new SelectList(await _repository.GetEmployees(), "Id", "Name"); return(View()); }
public async Task <IActionResult> Index() { return(View(await _repository.GetJops())); }