Ejemplo n.º 1
0
        public async Task <ActionResult> Create(DTO.Loan loan)
        {
            var res = await _loanService.CreateAsync(_mapper.Map <Services.Models.Loan>(loan));

            ValidateLoan validateLoan = _mapper.Map <ValidateLoan>(res);
            await _messageSession.Send(validateLoan).ConfigureAwait(false);

            return(Ok());
        }