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); }
public List <PurchaseOrderVM> GetOrderList() { var dto = iOrder.GetOrderList(); Mapper.CreateMap <PurchaseOrderDTO, PurchaseOrderVM>(); return(Mapper.Map <List <PurchaseOrderVM> >(dto)); }