示例#1
0
        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());
        }
示例#3
0
 public async Task <IActionResult> Index()
 {
     return(View(await _repository.GetJops()));
 }