Beispiel #1
0
        public ApiResult GetLeavaMessagePage(int currentPage)
        {
            List <LeaveMessageDTO> leaveMessageDTOs = _leaveMessageService.GetLeaveList(currentPage);
            int total = _leaveMessageService.SelectCount();

            return(ApiResult.Success(new { list = leaveMessageDTOs, total = total }));
        }
Beispiel #2
0
        public ApiResult Load(int pageIndex, int pageSize)
        {
            IList <LeaveMessageModel> leaveMessageModels = _leaveMessageService.SelectByPage(pageIndex, pageSize);
            int count = _leaveMessageService.SelectCount();

            return(ApiResult.Success(new { list = leaveMessageModels, total = count }));
        }