private IQueryable <Group> GetHotGroupByRelations(object entity) { var courseTCList = CourseService.GetCourseTCListFor(entity.GetType(), _.List(LinqToSqlUtils.GetPK(entity))); return(GetHotGroupsForCourses(courseTCList)); }
public List <Announce> GetAllForEntity(Type type, object pk) { var courseTCs = CourseService.GetCourseTCListFor(type, _.List(pk)); var isMicrosoft = type == typeof(Vendor) && (int)pk == Vendor.Microsoft; if (isMicrosoft) { var result = FilterCourses(Sections.Network, courseTCs); return(GetAnnouncesForCourses(result.Item1, result.Item2)); } return(GetAnnouncesForCourses(courseTCs)); }