示例#1
0
        public Result <PagedList <OrderViewModel> > GetOrderList(int userId, int pageIndex, int pageSize)
        {
            var result = new Result <PagedList <OrderViewModel> >
            {
                Data   = orderDataAccess.GetOrderList(userId, pageIndex, pageSize),
                Status = new Status()
                {
                    Code = "1", Message = ""
                }
            };

            return(result);
        }
示例#2
0
        public List <PurchaseOrderVM> GetOrderList()
        {
            var dto = iOrder.GetOrderList();

            Mapper.CreateMap <PurchaseOrderDTO, PurchaseOrderVM>();
            return(Mapper.Map <List <PurchaseOrderVM> >(dto));
        }