public async Task <ActionResult <WithdrawalFormRespObj> > GetAllWithdrawalAsync() { try { var response = await _repo.GetAllWithdrawalAsync(); return(new WithdrawalFormRespObj { WithdrawalForms = _mapper.Map <List <WithdrawalFormObj> >(response), }); } catch (Exception ex) { var errorCode = ErrorID.Generate(5); return(new WithdrawalFormRespObj { Status = new APIResponseStatus { IsSuccessful = false, Message = new APIResponseMessage { FriendlyMessage = "Error Occurred", TechnicalMessage = ex?.Message, MessageId = errorCode } } }); } }