public async Task DeletePaymentRequestsByIds() { PaymentRequest payment = new PaymentRequest(); long[] arr = new long[] { 5, 6 }; await payment.DeletePaymentRequestsByIds(arr); }
public static async Task <ApiResponse> DeletePaymentRequestsByIds(long[] ids) { ApiResponse response = new ApiResponse(); try { PaymentRequest request = new PaymentRequest(); await request.DeletePaymentRequestsByIds(ids); } catch (ApiCustomException ex) { Logger.Singleton.Error(ex.Message); response.Error = new ApiError(ex.ErrorCode, ex.Message); } catch (Exception ex) { Logger.Singleton.Error(ex.Message); response.Error = new ApiError(ex.HResult, ex.Message); } return(response); }