Example #1
0
        public BLModel.Paged.Education GetAllPagedEducationByfilter(string coursename, int skip, int take, int ClientID, int OrgID)
        {
            int count = 0;

            if (coursename == "%")
            {
                count = _eduRepository.GetEducationCount();
            }
            else
            {
                count = _eduRepository.GetEducationCountByFilter(education => (education.CourseName.StartsWith(coursename)));
            }
            return(new BLModel.Paged.Education
            {
                TotalCount = count,
                Educations = _eduRepository.GetAllPagedEducationByfilter(coursename, skip, take, ClientID, OrgID).ToList()
            });
        }