public async Task <ActionResult <FeeRespObj> > GetAllAccountTypeAsync() { try { var response = await _repo.GetAllFeeAsync(); return(new FeeRespObj { Fees = _mapper.Map <List <FeeObj> >(response), }); } catch (Exception ex) { var errorCode = ErrorID.Generate(5); _logger.Error($"ErrorID : {errorCode} Ex : {ex?.Message ?? ex?.InnerException?.Message} ErrorStack : {ex?.StackTrace}"); return(new FeeRespObj { Status = new APIResponseStatus { IsSuccessful = false, Message = new APIResponseMessage { FriendlyMessage = "Error Occurred", TechnicalMessage = ex?.Message, MessageId = errorCode } } }); } }