Browse Source

Merge branch 'develop5.0-tmd' of http://106.12.23.251:10000/TEAMMODEL/TEAMModelOS into develop5.0-tmd

OnePsycho 3 năm trước cách đây
mục cha
commit
eb065f2177
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      TEAMModelOS/Controllers/School/StudentCommonController.cs

+ 4 - 4
TEAMModelOS/Controllers/School/StudentCommonController.cs

@@ -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)