public ActionResult Create(Guid? businessId) { if (businessId.HasValue) { var pcm = new PromoCreateModel(this.AccountBase, businessId.Value, new ModelEntities.Promotion()); pcm.Setup(); return View(pcm); } else { return View("Error"); } }
// // GET: /Business/Promotion/Create public ActionResult Create(Guid businessId) { var pcm = new PromoCreateModel(this.AccountBase, businessId, new Entities.Promotion()); pcm.Setup(); return View(pcm); }