public ActionResult AddGiftCard(GiftCard giftcard) { giftcard.CurrentQuantity = giftcard.OriginalQuantity; db.GiftCards.InsertOnSubmit(giftcard); db.SubmitChanges(); return RedirectToAction("SearchGiftCard", new { number = giftcard.Number }); }
partial void DeleteGiftCard(GiftCard instance);
partial void UpdateGiftCard(GiftCard instance);
partial void InsertGiftCard(GiftCard instance);
private void detach_GiftCards(GiftCard entity) { this.SendPropertyChanging(); entity.Car = null; }
private void attach_GiftCards(GiftCard entity) { this.SendPropertyChanging(); entity.Car = this; }