public IEnumerable <Model.SystemModule> GetModulesPaged(int pageNumber, int pageSize) { int numberOfPages = 1; int totalNumberOfRecords = 0; return(_repository.GetPaged(pageSize, pageNumber, "", ref numberOfPages, ref totalNumberOfRecords).Select(m => new Model.SystemModule() { CreatedDate = m.CreatedDate, IsActive = m.IsActive, ModuleId = m.ModuleId, ModuleName = m.ModuleName })); }