async private void GetMarks() { this.marks = await APIHandler.GetGroupMarks(group); foreach (AbstractMark mark in this.marks) { StudentTask key = new StudentTask() { studentId = mark.GetStudentId(), taskId = mark.GetTaskId() }; studentTaskMarkLinker[key] = mark; } ProgressBarIncrement(); }