public void List() { LeavingMsgQueryRequest request = new LeavingMsgQueryRequest { PageIndex = 1, PageSize = 10 }; var list = service.List(request); }
public ContentResult listleavingmsg(LeavingMsgQueryRequest request) { var data = _leavingMsgService.List(request); var res = new ResultDto <LeavingMsgResponse> { page = request.PageIndex, total = request.Total, records = request.Records, rows = data }; return(Content(res.Serialize())); }