public BaseSchoolProfile getP4FirstLevelbySubjectAndSIMD(string subject) { BaseSchoolProfile temp = new BaseSchoolProfile(); temp.YearInfo = year; temp.ListGenericSchoolData.Add(P4FirstLevelQ1.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(P4FirstLevelQ2.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(P4FirstLevelQ3.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(P4FirstLevelQ4.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(P4FirstLevelQ5.Where(x => x.Code.Equals(subject)).FirstOrDefault()); return(temp); }
public BaseSchoolProfile getS3ForthLevelbySubjectAndSIMD(string subject) { BaseSchoolProfile temp = new BaseSchoolProfile(); temp.YearInfo = year; temp.ListGenericSchoolData.Add(SIMDQ1_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(SIMDQ2_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(SIMDQ3_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(SIMDQ4_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault()); temp.ListGenericSchoolData.Add(SIMDQ5_4level.Where(x => x.Code.Equals(subject)).FirstOrDefault()); return(temp); }