public static List <Customer> getCustomerList(RestProfile profile) { ServiceContext serviceContext = getServiceContext(profile); QueryService <Customer> customerQueryService = new QueryService <Customer>(serviceContext); return(customerQueryService.Select(c => c).ToList()); }
private DataTable GetFarmAccessTable(int farm_id) { var service = new QueryService(); var criteria = GetFarmAccessCriteria(farm_id); return(service.Select(criteria.ToSerializableCriteria())); }
public static List <Employee> getEmployeeList(IppRealmOAuthProfile profile) { ServiceContext serviceContext = getServiceContext(profile); QueryService <Employee> employeeQueryService = new QueryService <Employee>(serviceContext); return(employeeQueryService.Select(c => c).ToList()); }
public void PredefinedPropertySetTest() { QueryService <Customer> customerService = new QueryService <Customer>(serviceContext); var query = customerContext.Select(c => new { c.GivenName, c.Id }); foreach (var item in query) { } }
public IEnumerable <Customer> GetAllCustomers() { var serviceContext = QbApiHelper.GetServiceContext(); var query = new QueryService <Customer>(serviceContext); var customers = query.Select(c => c).ToList(); return(customers); }
public IEnumerable <Invoice> GetAllInvoices() { var serviceContext = QbApiHelper.GetServiceContext(); var query = new QueryService <Invoice>(serviceContext); var invoices = query.Select(c => c).ToList(); return(invoices); }
public static List<Employee> getEmployeeList(IppRealmOAuthProfile profile) { ServiceContext serviceContext = getServiceContext(profile); QueryService<Employee> employeeQueryService = new QueryService<Employee>(serviceContext); return employeeQueryService.Select(c => c).ToList(); }
public static List<Customer> getCustomerList(RestProfile profile) { ServiceContext serviceContext = getServiceContext(profile); QueryService<Customer> customerQueryService = new QueryService<Customer>(serviceContext); return customerQueryService.Select(c => c).ToList(); }