Esempio n. 1
0
        public ActionResult Add(CreateBusiness command)
        {
            ChannelHelper.Use(_channelFactory.CreateChannel(), (client) =>
                              client.Execute(new ExecuteRequest(command)));

            return RedirectToAction("Index");
        }
Esempio n. 2
0
        public ActionResult Add()
        {
            var command = new CreateBusiness
                              {
                                  BusinessId = Guid.NewGuid()
                              };

            return View(command);
        }