예제 #1
0
        public ActionResult Depart(DepatureCommand command)
        {
            if (!ModelState.IsValid)
                return Index();

            bus.Send(command);

            TempData["Fake"] = new ShipViewModel() { Id = command.DepartingShipId, Location = "At Sea" };

            return RedirectToAction("Index");
        }
예제 #2
0
 public DepartedEvent(DepatureCommand command)
 {
     Id = command.DepartingShipId;
 }