Ejemplo n.º 1
0
        public void DeleteWonPrize(int wonPrizeId)
        {
            WonPrize targetWonPrize = context.WonPrizes.Find(wonPrizeId);

            if (targetWonPrize != null)
            {
                context.WonPrizes.Remove(targetWonPrize);
            }
        }
Ejemplo n.º 2
0
        public void UpdateWonPrize(WonPrize wonPrize)
        {
            WonPrize targetWonPrize = context.WonPrizes.Find(wonPrize.WonPrizeID);

            if (targetWonPrize != null)
            {
                targetWonPrize.WinningAction = wonPrize.WinningAction;
                targetWonPrize.TimeWon       = wonPrize.TimeWon;
            }
        }
Ejemplo n.º 3
0
 public void InsertWonPrize(WonPrize wonPrize)
 {
     context.WonPrizes.Add(wonPrize);
 }