Exemple #1
0
        public List <OrderItemStatus> GetStatuses()
        {
            return(ExecuteFaultHandledOperation(() =>
            {
                List <OrderItemStatus> order_statuses = _cache.Get(CacheKeys.OrderItemStatuses) as List <OrderItemStatus>;
                if (order_statuses == null)
                {
                    Log.Info("GetStatuses Order Status called");
                    order_statuses = new List <OrderItemStatus>();
                    var statuses_data = _order_status_repo.GetAll();

                    foreach (OrderStatusData status_data in statuses_data)
                    {
                        order_statuses.Add(_order_item_status_es.Map(status_data));
                    }

                    _cache.Set(CacheKeys.OrderItemStatuses, order_statuses);
                    Log.Debug("GetStatuses Order Status complete");
                }
                return order_statuses;
            }));
        }
Exemple #2
0
 public IList <OrderStatus> GetOrderStatuses()
 {
     return(_orderStatusRepository.GetAll());
 }
        public IEnumerable <OrderStatus> GetAllOrderStatuses()
        {
            var orderStatuss = orderStatusesRepository.GetAll();

            return(orderStatuss);
        }
 public ICollection <OrderStatus> GetAllWithoutPagination()
 {
     return(_orderStatusRepository.GetAll().ToList());
 }
Exemple #5
0
 public async Task <IEnumerable <OrderStatus> > GetAll()
 {
     return(await repository.GetAll());
 }
Exemple #6
0
 public IEnumerable <OrderStatus> GetAll()
 {
     return(_orderStatusRepository.GetAll());
 }
 public IQueryable <OrderStatus> GetOrderStatuss()
 {
     return(_repository.GetAll());
 }
Exemple #8
0
 public IEnumerable <OrderStatus> GetAll()
 {
     return(db.GetAll());
 }