コード例 #1
0
        public async Task <IHttpActionResult> GetTeachersSections()
        {
            // Get the teacherUSI from the security principal.
            var teacherUsi = SecurityPrincipal.Current.PersonUSI;
            var model      = await _teachersService.GetStaffSectionsAsync(teacherUsi);

            if (model == null)
            {
                return(NotFound());
            }

            return(Ok(model));
        }