public IHttpActionResult PayInstallment(CreditInstallmentDto creditInstallmentDto) { var userId = User.Identity.GetUserId().Value; var result = _creditService.PayInstallment(userId, creditInstallmentDto); if (!result.Success) { return(BadRequest(result.Message)); } else { return(Ok(result.Message)); } }