private void AddTypeRequirement(IList <ResultDetailItem> list, LectureCategoryRequirementItem categoryItem) { foreach (LectureTypeRequirementItem item in TypeRequirements) { if (item.LectureCategoryId != categoryItem.LectureCategoryId) { continue; } ResultDetailItem result = new ResultDetailItem(); result.Name = categoryItem.LectureCategoryName + " " + item.LectureTypeName; result.Requirement = item.Cutline; result.Score = GetScoreByType(item.LectureTypeId); list.Add(result); //AddSectionResult(list, categoryItem, item); } }