public async Task <ActionResult <LoanReviewListObjRespObj> > GetAllRunningLoanByCustomerId([FromQuery] SearchQueryObj model) { try { var response = _repo.GetAllRunningLoanByCustomerId(model.CustomerId); return(new LoanReviewListObjRespObj { LoanReviewList = response, }); } catch (Exception ex) { var errorCode = ErrorID.Generate(5); _logger.Error($"ErrorID : {errorCode} Ex : {ex?.Message ?? ex?.InnerException?.Message} ErrorStack : {ex?.StackTrace}"); return(new LoanReviewListObjRespObj { Status = new APIResponseStatus { IsSuccessful = false, Message = new APIResponseMessage { FriendlyMessage = "Error Occurred", TechnicalMessage = ex?.Message, MessageId = errorCode } } }); } }