コード例 #1
0
        public async Task <IApplicationResult <bool> > RegisterAsync(List <ChargeMessage> messages)
        {
            IDomainResult <bool> domainResult = await ChargeEntityService.RegisterAsync(ChargeMapper.MapTo(messages));

            return(ResultMapper.MapFromDomainResult(domainResult, (domain) => domain));
        }
コード例 #2
0
        public async Task <IApplicationResult <List <ChargeMessage> > > GetAsync(ChargeSearchMessage message)
        {
            IDomainResult <List <Charge> > domainResult = await ChargeEntityService.GetAsync(message.Cpf, message.ReferenceMonth);

            return(ResultMapper.MapFromDomainResult(domainResult, (domain) => ChargeMapper.MapTo(domain)));
        }
コード例 #3
0
        public async Task <IApplicationResult <List <ClientMessage> > > GetAllAsync()
        {
            IDomainResult <List <Client> > domainResult = await ClientEntityService.GetAllAsync();

            return(ResultMapper.MapFromDomainResult(domainResult, (domain) => ClientMapper.MapTo(domain)));
        }
コード例 #4
0
        public async Task <IApplicationResult <bool> > RegisterAsync(ClientMessage message)
        {
            IDomainResult <bool> domainResult = await ClientEntityService.RegisterAsync(ClientMapper.MapTo(message));

            return(ResultMapper.MapFromDomainResult(domainResult, (domain) => domain));
        }
コード例 #5
0
        public async Task <IApplicationResult <ClientMessage> > GetAsync(ClientSearchMessage message)
        {
            IDomainResult <Client> domainResult = await ClientEntityService.GetAsync(message.Cpf);

            return(ResultMapper.MapFromDomainResult(domainResult, (domain) => ClientMapper.MapTo(domain)));
        }