Skip to content

Commit ca0bf09

Browse files
committed
refactor
1 parent 1261411 commit ca0bf09

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

HwProj.APIGateway/HwProj.APIGateway.API/Controllers/CoursesController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,13 @@ public async Task<IActionResult> GetMentorWorkspace(long courseId, string mentor
273273
var studentIds = mentorCourseView.Value.CourseMates.Select(t => t.StudentId).ToArray();
274274
var students = await AuthServiceClient.GetAccountsData(studentIds);
275275

276-
return Ok(new WorkspaceViewModel
276+
var workspace = new WorkspaceViewModel
277277
{
278278
Homeworks = mentorCourseView.Value.Homeworks,
279279
Students = students.OrderBy(x => x.Surname).ThenBy(x => x.Name).ToArray(),
280280
Groups = mentorCourseView.Value.Groups,
281-
});
281+
};
282+
return Ok(workspace);
282283
}
283284

284285
private async Task<WorkspaceViewModel> CourseToMentorWorkspaceViewModel(CourseDTO course, CourseDTO mentorCourseView)

0 commit comments

Comments
 (0)