Example #1
0
        public ActionResult WhoAreYourCarriers(Guid notificationId, Guid[] newMovementIds)
        {
            TempData.Remove("SelectedCarriers");

            var model = new WhoAreYourCarrierViewModel();

            model.MovementIds = newMovementIds;
            return(View(model));
        }
Example #2
0
 public ActionResult WhoAreYourCarriers(Guid notificationId, Guid[] newMovementIds, WhoAreYourCarrierViewModel model)
 {
     if (!model.AddCarriersLater)
     {
         ModelState.AddModelError("AddCarriersLater", "Select an option for adding carriers");
     }
     if (!ModelState.IsValid)
     {
         return(View(model));
     }
     return(RedirectToAction("Summary", model.MovementIds.ToRouteValueDictionary("newMovementIds")));
 }