public ActionResult Add(CreateBusiness command) { ChannelHelper.Use(_channelFactory.CreateChannel(), (client) => client.Execute(new ExecuteRequest(command))); return RedirectToAction("Index"); }
public ActionResult Add() { var command = new CreateBusiness { BusinessId = Guid.NewGuid() }; return View(command); }