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); }
public static IEnumerable <string> GetAllUserCoursCatalogIds(this MyCourseController ctrl, string userprofileId) { var qry = ctrl.GetAllCourses(userprofileId).Select(it => it.CourseCatalogId); return(qry); }