public Result ReverseTransaction(TransactionRequest tranRequest) { Result result = new Result(); try { if (tranRequest.IsValidReversal()) { result = bll.ReverseTransaction(tranRequest); } else { result.StatusCode = tranRequest.StatusCode; result.StatusDesc = tranRequest.StatusDesc; } } catch (Exception ex) { result.StatusCode = "100"; result.StatusDesc = "FAILED: " + ex.Message; } return(result); }