Пример #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);
        }