using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.DataLogic.Repositories; using EMIS.ViewModel.PaymentManage; using System.Linq.Expressions; using EMIS.Entities; namespace EMIS.DataLogic.PaymentManage { public class PaymentStandardDAL { public PaymentStandardRepository PaymentStandardRepository { get; set; } public IQueryable GetPaymentStandardViewQueryable(Expression> exp) { var query = from a in PaymentStandardRepository.GetList(exp) select new PaymentStandardView { PaymentStandardID = a.PaymentStandardID, TitleID = a.Title, TeacherType = a.TeacherType, Amount = a.Amount }; return query; } } }