public async Task <ActionResult> UpdateWithdrawalTxId(int id) { System.Console.WriteLine("UpdateWithdrawalTxId entered. Id: " + id); var model = await ReprocessingReader.GetWithdrawalToUpdate(id); if (model == null) { return(ViewMessageModal(new ViewMessageModel(Models.ViewMessageType.Danger, "Error", $"Withdrawal '{id}' not found"))); } if (model.RetryCount > 0) { return(ViewMessageModal(new ViewMessageModel(Models.ViewMessageType.Danger, "Error", $"Unable to reprocess Withdrawal '{id}'. Retry count limit reached."))); } if (model.Status != Cryptopia.Enums.WithdrawStatus.Processing) { return(ViewMessageModal(new ViewMessageModel(Models.ViewMessageType.Danger, "Error", $"Withdrawal '{id}' not in correct state to reprocess. Current state: '{model.Status}'"))); } return(View("UpdateWithdrawalTxIdModal", model)); }
public async Task <ActionResult> GetWalletTransactions(WalletTxRequestModel model, DataTablesModel tableModel) { DataTablesResponse response = await ReprocessingReader.GetWalletTransactions(model, tableModel); return(DataTable(response)); }
public async Task <ActionResult> ApproveWithdrawalReprocessing(int id) { var model = await ReprocessingReader.GetApproval(id); return(View("WithdrawalReprocessingApproveModal", model)); }
public async Task <ActionResult> GetIncompleteWithdrawals(DataTablesModel model) { return(DataTable(await ReprocessingReader.GetIncompleteWithdrawals(model))); }
public async Task <ActionResult> GetPendingApprovals(DataTablesModel model) { DataTablesResponse response = await ReprocessingReader.GetPendingApprovals(model); return(DataTable(response)); }