Beispiel #1
0
        public IActionResult GetCourseData([FromQuery] int hashCode)
        {
            TimetableData data = _timetableConfigService.GetTimetableDataByHashCode(User.Identity.Name, hashCode);

            if (data != null)
            {
                if (data.CourseLecturerSettings == null)
                {
                    data.CourseLecturerSettings = _timetableConfigService.GenerateCourseLecturerSettings(data);
                }
                return(Ok(new { response = "success", data = data.CourseLecturerSettings }));
            }
            return(Ok(new { response = "not found" }));
        }