コード例 #1
0
        private IEnumerable <string> getAllUserCourses()
        {
            var userId = User.Identity.IsAuthenticated ? User.Identity.Name : string.Empty;
            var qry    = _myCourseCtrl.GetAllCourses(userId)
                         .Select(it => it.CourseCatalogId);

            return(qry);
        }
コード例 #2
0
        public static IEnumerable <string> GetAllUserCoursCatalogIds(this MyCourseController ctrl, string userprofileId)
        {
            var qry = ctrl.GetAllCourses(userprofileId).Select(it => it.CourseCatalogId);

            return(qry);
        }