|
@@ -151,7 +151,7 @@ namespace TEAMModelOS.Controllers
|
|
|
HashSet<string> info = new HashSet<string>();
|
|
|
foreach (CourseDto dto in sc)
|
|
|
{
|
|
|
- if(dto.course != null)
|
|
|
+ if (dto.course != null)
|
|
|
{
|
|
|
if (dto.course.schedule.Count > 0)
|
|
|
{
|
|
@@ -164,9 +164,9 @@ namespace TEAMModelOS.Controllers
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ else {
|
|
|
+ return Ok(new { courses = sc});
|
|
|
+ }
|
|
|
}
|
|
|
List<(string id, string name)> teachers = new();
|
|
|
if (info.Count > 0)
|