public ActionResult Arrive(ArrivalCommand command) { if (!ModelState.IsValid) return Index(); bus.Send(command); TempData["Fake"] = new ShipViewModel() {Id = command.ArrivingShipId, Location = command.ArrivalPort}; return RedirectToAction("Index"); }
public ArrivedEvent(ArrivalCommand arrivalCommand) { Id = arrivalCommand.ArrivingShipId; ArrivalPort = arrivalCommand.ArrivalPort; }