public DataTableResultModel GenerateAuditLoginDataTableResultViewModel(DataTableRequestModel requestModel, IClientDataTable <LoginEvent> dataTable)
        {
            if (requestModel == null)
            {
                throw new ArgumentNullException("requestModel");
            }
            IQueryable <LoginEvent> items = LoginEventRepository.Items;

            return(DataTableBinder.Bind <LoginEvent>(items, dataTable, requestModel));
        }
        public DataTableResultModel GenerateDataTableResultViewModel(DataTableRequestModel requestModel, IClientDataTable <User> dataTable)
        {
            IQueryable <User> items = UserRepository.Items.
                                      Include("UserRoles.Role").
                                      Include("UserRoles.Schools").
                                      Include("UserRoles.Providers").
                                      Include(u => u.LoginEvents);

            return(DataTableBinder.Bind <User>(items, dataTable, requestModel));
        }
Ejemplo n.º 3
0
        public DataTableResultModel GenerateDataTableResultViewModel(DataTableRequestModel requestModel, IClientDataTable <Student> dataTable)
        {
            IQueryable <Student> items = StudentRepository.Items.Include(s => s.ApprovedProviders).
                                         Include(s => s.School).
                                         Include("CustomFieldValues.CustomDataOrigin.CreatingUser").
                                         Include("ServiceRequests.ServiceType").
                                         Include("ServiceRequests.Priority").
                                         Include("ServiceRequests.Subject").
                                         Include("ServiceRequests.FulfillmentDetails.FulfillmentStatus").
                                         Include("StudentAssignedOfferings.ServiceOffering.Provider").
                                         Include("StudentAssignedOfferings.ServiceOffering.ServiceType").
                                         Include("StudentAssignedOfferings.ServiceOffering.Program");

            return(DataTableBinder.Bind <Student>(items, dataTable, requestModel));
        }
        public override DataTableResultModel GenerateDataTableResultViewModel(DataTableRequestModel requestModel, IClientDataTable <CustomField> dataTable)
        {
            IQueryable <CustomField> items = CustomFieldRepository.Items.OfType <PublicField>();

            return(DataTableBinder.Bind <CustomField>(items, dataTable, requestModel));
        }
 public void InitializeTest()
 {
     Target = new DataTableBinder();
     DataTable = MockRepository.GenerateMock<IClientDataTable<Program>>();
     RequestModel = new DataTableRequestModel();
 }
Ejemplo n.º 6
0
        public DataTableResultModel GenerateApprovalDataTableResultViewModel(DataTableRequestModel requestModel, IClientDataTable <Student> dataTable)
        {
            IQueryable <Student> items = StudentRepository.Items;

            return(DataTableBinder.Bind <Student>(items, dataTable, requestModel));
        }