Ejemplo n.º 1
0
        public ActionResult ChangeName(ChangeNameOfCustomer command)
        {
            WebsiteApplication.TheCommandService.Execute(command);

            return View();
        }
Ejemplo n.º 2
0
        public ActionResult ChangeName(Guid customerId)
        {
            var command = new ChangeNameOfCustomer{CustomerId = customerId, NewName = new WebsiteReadModelDataContext().CustomerModels.First(c=>c.CustomerId==customerId).Name};

            return View(command);
        }