public void ClaimCoupon(Coupon coupon) { DataContext.Coupons.InsertOnSubmit(coupon); DataContext.SubmitChanges(); UpdateClaimed(coupon.DealId); }
private void attach_Coupons(Coupon entity) { this.SendPropertyChanging(); entity.Deal = this; }
partial void DeleteCoupon(Coupon instance);
partial void UpdateCoupon(Coupon instance);
partial void InsertCoupon(Coupon instance);
private void detach_Coupons(Coupon entity) { this.SendPropertyChanging(); entity.Deal = null; }