Exemplo n.º 1
0
 public ActionResult Create(CreateCustomerViewModel model)
 {
     Bus.Instance.Publish(new CreateCustomer
     {
         FirstName = model.FirstName,
         LastName =  model.LastName,
         Id = Guid.NewGuid()
     });
     return RedirectToAction("Index");
 }
 public ActionResult Create(CreateCustomerViewModel model)
 {
     Bus.Instance.Publish(new CreateCustomerMessage
     {
         FirstName = model.FirstName,
         LastName  = model.LastName,
         Id        = Guid.NewGuid()
     });
     return(RedirectToAction("Index"));
 }