Exemple #1
0
        public async Task <ResultModel <List <NamespaceListDTO> > > GetNamespaceListAsync(QueryNamespaceFilterRequestModel requestModel)
        {
            var model = _mapper.Map <QueryNamespaceFilterModel>(requestModel);
            List <NamespaceListDTO> result = await _namespaceService.GetNamespaceListAsync(model);

            return(ResultModel <List <NamespaceListDTO> > .Success(result, "查询成功"));
        }
Exemple #2
0
        public async Task <ResultModel <List <NamespaceListDTO> > > GetNamespaceListAsync(QueryNamespaceFilterRequestModel requestModel)
        {
            var resultModel = await SendPostAsync <ResultModel <List <NamespaceListDTO> > >($"{_controllerUrl}GetNamespaceList", requestModel);

            return(resultModel);
        }