using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.DataLogic.Repositories; using System.Linq.Expressions; using EMIS.Entities; namespace EMIS.DataLogic.ExamManage { public class ExaminationBatchDAL { public ExaminationBatchRepository BatchRepository { get; set; } public IQueryable GetBatchList(Expression> expCampus) { var query = from a in BatchRepository.GetList(expCampus) select new EMIS.ViewModel.ExaminationBatchView { EndDate = a.EndDate, ExaminationBatchID = a.ExaminationBatchID, Name = a.Name, Remark = a.Remark, Schoolyear = a.CF_Schoolyear.Code, SchoolyearID = a.SchoolyearID, StartDate = a.StartDate }; return query; } } }