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