using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.DataLogic.Repositories; using EMIS.ViewModel.TerminatePrinter; using System.Linq.Expressions; using EMIS.Entities; namespace EMIS.DataLogic.TerminatePrinter { public class PrintControlDAL { public PrintControlRepository PrintControlRepository { get; set; } public IQueryable GetPrintControlViewQueryable(Expression> exp) { var query = from control in PrintControlRepository.GetList(exp) select new PrintControlView { PrintControlID = control.PrintControlID, YearID = control.YearID, Times = control.Times }; return query; } } }