예제 #1
0
 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");
     }
 }
예제 #2
0
 //
 // GET: /Business/Promotion/Create
 public ActionResult Create(Guid businessId)
 {
     var pcm = new PromoCreateModel(this.AccountBase, businessId, new Entities.Promotion());
     pcm.Setup();
     return View(pcm);
 }