Beispiel #1
0
        public IActionResult AddNewLecture(string courseId, bool intro)
        {
            if (intro)
            {
                if (!_access.IsAdmin(User))
                {
                    return(BadRequest());
                }
            }
            _lectureService.AddNewLecture(courseId, intro);

            return(Ok());
        }