Esempio n. 1
0
        public async Task <Result <List <GetAllClaimsResponse> > > Handle(GetSearchClaimsQuery request, CancellationToken cancellationToken)
        {
            var claimList = await _claim.GetSearchClaimsAsync(request.searchStr);

            var mappedClaims = _mapper.Map <List <GetAllClaimsResponse> >(claimList);

            return(Result <List <GetAllClaimsResponse> > .Success(mappedClaims));
        }