public async Task<ActionResult> Confirm(ConfirmCancelMovementsViewModel model) { object result; if (TempData.TryGetValue(SubmittedMovementListKey, out result)) { var selectedMovements = result as List<MovementData>; TempData[SubmittedMovementListKey] = selectedMovements; await mediator.SendAsync(new CancelMovements(model.NotificationId, selectedMovements)); return RedirectToAction("Success", "CancelMovement", new { notificationId = model.NotificationId }); } return HttpNotFound(); }
public ActionResult Confirm(Guid notificationId) { object result; if (TempData.TryGetValue(SubmittedMovementListKey, out result)) { var selectedMovements = result as List<MovementData>; var model = new ConfirmCancelMovementsViewModel(notificationId, selectedMovements); TempData[SubmittedMovementListKey] = selectedMovements; return View(model); } return RedirectToAction("Index", "CancelMovement", new { notificationId }); }
public async Task <ActionResult> Confirm(ConfirmCancelMovementsViewModel model) { object result; if (TempData.TryGetValue(SubmittedMovementListKey, out result)) { var selectedMovements = result as List <MovementData>; TempData[SubmittedMovementListKey] = selectedMovements; await mediator.SendAsync(new CancelMovements(model.NotificationId, selectedMovements)); return(RedirectToAction("Success", "CancelMovement", new { notificationId = model.NotificationId })); } return(HttpNotFound()); }
public ActionResult Confirm(Guid notificationId) { object result; if (TempData.TryGetValue(SubmittedMovementListKey, out result)) { var selectedMovements = result as List <MovementData>; var model = new ConfirmCancelMovementsViewModel(notificationId, selectedMovements); TempData[SubmittedMovementListKey] = selectedMovements; return(View(model)); } return(RedirectToAction("Index", "CancelMovement", new { notificationId })); }