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