public ClientOrderReadModel(string id,
                             string clientId,
                             DateTime createDateTime,
                             DateTime updateDateTime,
                             TimeSpan expirationTimeout,
                             OrderStateReadModel state)
 {
     Id                = id;
     ClientId          = clientId;
     CreateDateTime    = createDateTime;
     UpdateDateTime    = updateDateTime;
     ExpirationTimeout = expirationTimeout;
     State             = state;
 }
 public GetCustomerOrdersByState(OrderStateReadModel state, string customerId)
 {
     State      = state;
     CustomerId = customerId;
 }
        public async Task <IEnumerable <ClientOrderReadModel> > GetClientOrdersByStateAsync(string clientId, OrderStateReadModel orderStateReadModel)
        {
            var results = await Collection.FindAsync(model => model.ClientId == clientId && model.State == orderStateReadModel);

            return(await results.ToListAsync());
        }
Example #4
0
 public OrderReadModel(string id, OrderStateReadModel state)
 {
     Id    = id;
     State = state;
 }