コード例 #1
0
ファイル: ShipsController.cs プロジェクト: jimmyp/Loveboat
        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");
        }
コード例 #2
0
ファイル: ArrivedEvent.cs プロジェクト: jimmyp/Loveboat
 public ArrivedEvent(ArrivalCommand arrivalCommand)
 {
     Id = arrivalCommand.ArrivingShipId;
     ArrivalPort = arrivalCommand.ArrivalPort;
 }