EducationMissionClassServices.cs 816 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMISOnline.Entities;
  6. using System.Linq.Expressions;
  7. using EMISOnline.DataLogic.Educational;
  8. using Bowin.Common.Linq.Entity;
  9. using EMISOnline.ViewModel.Educational;
  10. using Bowin.Common.Linq;
  11. namespace EMISOnline.CommonLogic.EducationalServices
  12. {
  13. public class EducationMissionClassServices : IEducationMissionClassServices
  14. {
  15. public EducationMissionClassDAL EducationMissionClassDAL { get; set; }
  16. public IGridResultSet<EducationMissionClassView> GetEducationMissionClassList(int page, int rows)
  17. {
  18. return EducationMissionClassDAL.GetEducationMissionClassList()
  19. .OrderByDescending(r => r.EducationMissionClassID).ToGridResultSet(page - 1, rows); ;
  20. }
  21. }
  22. }