Пример #1
0
 public void InsertWonPrize(WonPrize wonPrize)
 {
     context.WonPrizes.Add(wonPrize);
 }
Пример #2
0
 public ActivityFeedContainer(WonPrize prize)
     : this()
 {
     ItemDate = prize.TimeWon;
     WonPrize = prize;
 }
Пример #3
0
        public void UpdateWonPrize(WonPrize wonPrize)
        {
            WonPrize targetWonPrize = context.WonPrizes.Find(wonPrize.WonPrizeID);

            if (targetWonPrize != null)
            {
                targetWonPrize.WinningAction = wonPrize.WinningAction;
                targetWonPrize.TimeWon = wonPrize.TimeWon;
            }
        }