public IActionResult Index() { var model = new TrainingIndexModel(); model.Trainings = _trainingService.GetAllTrainingsForDepartment(DepartmentId); return(View(model)); }
public async Task <IActionResult> Index() { var model = new TrainingIndexModel(); model.Trainings = await _trainingService.GetAllTrainingsForDepartmentAsync(DepartmentId); return(View(model)); }