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()); }