Ejemplo 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 });
 }
Ejemplo n.º 2
0
 partial void DeleteGiftCard(GiftCard instance);
Ejemplo n.º 3
0
 partial void UpdateGiftCard(GiftCard instance);
Ejemplo n.º 4
0
 partial void InsertGiftCard(GiftCard instance);
Ejemplo n.º 5
0
		private void detach_GiftCards(GiftCard entity)
		{
			this.SendPropertyChanging();
			entity.Car = null;
		}
Ejemplo n.º 6
0
		private void attach_GiftCards(GiftCard entity)
		{
			this.SendPropertyChanging();
			entity.Car = this;
		}