public Task <BaseListResponseDto> FindEmployeePageBy(BasePagedRequestDto req) { var rsp = new BaseListResponseDto(); var rows = _queryEmployeeRepository.GetByPagination(a => !a.IsDelete && a.CorporationKeyId == req.Identify.CorporationKeyId, req.PageSize, req.PageIndex, null).ToList(); rsp.Result = rows; rsp.OperateFlag = true; return(Task.FromResult(rsp)); }
public async Task <ServiceResult <BaseListResponseDto> > GetRoleTree(BasePagedRequestDto req) { var result = await _orgProxy.FindEmployeePageBy(req); return(ServiceResult <BaseListResponseDto> .Create(true, result)); }