Skip to content

Commit 66e97c3

Browse files
committed
refactor
1 parent 4051731 commit 66e97c3

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
@@ -272,12 +272,13 @@ public async Task<IActionResult> GetMentorWorkspace(long courseId, string mentor
272272
var studentIds = mentorCourseView.Value.CourseMates.Select(t => t.StudentId).ToArray();
273273
var students = await AuthServiceClient.GetAccountsData(studentIds);
274274

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

283284
private async Task<CourseViewModel> ToCourseViewModel(CourseDTO course)

0 commit comments

Comments
 (0)