public List <ViewLevelOrder> GetOrdersPageList(int page, int pagesize, string Ordertype, out int count)
        {
            List <LevelOrder>     list  = _repository.GetOrdersPageList(page, pagesize, Ordertype, out count);
            List <ViewLevelOrder> model = new List <ViewLevelOrder>();

            foreach (var item in list)
            {
                model.Add(ViewLevelOrder.ToViewModel(item));
            }
            return(model);
        }
        public List <ViewLevelOrder> BackGetOrdersPageList(string Name, string OrderState, string TargetLevel, string OrderType,
                                                           int page, int pagesize, out int count)
        {
            List <LevelOrder>     list  = _repository.BackGetOrdersPageList(Name, OrderState, TargetLevel, OrderType, page, pagesize, out count);
            List <ViewLevelOrder> model = new List <ViewLevelOrder>();

            foreach (var item in list)
            {
                model.Add(ViewLevelOrder.ToViewModel(item));
            }
            return(model);
        }
        public ViewLevelOrder GetById(int id)
        {
            LevelOrder lo = _repository.Get(id);

            return(ViewLevelOrder.ToViewModel(lo));
        }
        public ViewLevelOrder GetUid(int UID)
        {
            LevelOrder lo = _repository.GetUid(UID);

            return(ViewLevelOrder.ToViewModel(lo));
        }