コード例 #1
0
        public async Task <ActionResult <Result> > CancelLoanRequest([FromBody] LoanDto loanToUpdate)
        {
            var result = await _loanService.CancelLoanRequest(loanToUpdate);

            if (!result.Succeeded)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }