public ActionResult DeleteScheduledTransaction(TransactionsViewModel model) { if ([email protected]) { return(RedirectToAction("DeleteScheduledTransaction", "Transaction", new { id = model.TransactionId })); } try { _transactionLogic.RemoveScheduledTransaction(model.TransactionId); return(RedirectToAction("Index", "Transaction", new { id = model.AccountId })); } catch (Exception e) { Console.WriteLine(e); return(RedirectToAction("Index", "Transaction", new { id = model.AccountId })); throw; } }