0

Here is my example code

private async Task<Result<BillReconcileData>> BillReconcileFundTrans(string taskId, string processId, AccountingEntryCNR aEntry, BillReconcileData data)

  {

    
    Result<string> bprRequestRs = BillReconcileDB.SelectBillProxyRequest(processId, aEntry.channelIntTranRefNo);

   

    if (!bprRequestRs.IsSuccess)


      return Result<BillReconcileData>.Error(ErrorCode.FAILURE.ToString(), "Get Bill Proxy Request FAILURE");

    return Result<BillReconcileData>.Success(data);

  }

in case !bprRequestRs.IsSuccess, how to return data variable together result.error

i search way to do it but can not

Vu Son
  • 3
  • 1

0 Answers0