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 PracticeRateDAL { public PracticeRateRepository PracticeRateRepository { get; set; } public IQueryable GetPracticeRateViewQueryable(Expression> exp) { var query = from a in PracticeRateRepository.GetList(exp) select new PracticeRateView { PracticeRateID = a.PracticeRateID, CourseTypeID = a.CourseTypeID, Rate = a.Rate }; return query; } } }