public WrapperVM <bool> IsCourseMemberAdmin(string courseMemberId)
        {
            string courseId      = courseMemberService.GetCourseIdOf(courseMemberId);
            bool   isCourseAdmin = peopleService.IsAdminOfCourse(GetCurrentUserId(), courseId);

            return(new WrapperVM <bool>(isCourseAdmin));
        }
Beispiel #2
0
        public WrapperVM <string> GetCourseId(string memberId)
        {
            string courseId = courseMemberService.GetCourseIdOf(memberId);

            return(new WrapperVM <string>(courseId));
        }