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

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

            return View(command);
        }