Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 public ArrivedEvent(ArrivalCommand arrivalCommand)
 {
     Id = arrivalCommand.ArrivingShipId;
     ArrivalPort = arrivalCommand.ArrivalPort;
 }