public void LoanRequestFor([FromBody] LoanRequestDTO loanRequestDTO) { try { _service.Reqest(_mapper.Map <LoanRequestModel>(loanRequestDTO)); } catch (Exception e) { throw new Exception(e.Message); } }
public async Task <ActionResult> RequestLoan([FromBody] LoanRequestDTO loanRequestDTO) { try { return(Ok()); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError)); } }