Ejemplo n.º 1
0
        public async Task <IActionResult> Apply([FromBody] CreditApplyRequest request)
        {
            var creditResult = await _creditService.Apply(request);

            if (creditResult.Status == CreditStatus.NotApplied)
            {
                return(BadRequest(creditResult));
            }

            return(Ok(creditResult));
        }