public ActionResult Create()
 {
     var m = new Promotion();
     DbUtil.Db.Promotions.InsertOnSubmit(m);
     DbUtil.Db.SubmitChanges();
     return Redirect("/PromotionSetup/");
 }
Example #2
0
 private void detach_ToPromotions(Promotion entity)
 {
     this.SendPropertyChanging();
     entity.ToDivision = null;
 }
Example #3
0
 private void attach_FromPromotions(Promotion entity)
 {
     this.SendPropertyChanging();
     entity.FromDivision = this;
 }
Example #4
0
 private void attach_FromPromotions(Promotion entity)
 {
     this.SendPropertyChanging();
     entity.FromDivision = this;
 }
Example #5
0
 private void detach_ToPromotions(Promotion entity)
 {
     this.SendPropertyChanging();
     entity.ToDivision = null;
 }