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