Ejemplo n.º 1
0
        /// <summary>
        /// Used to Update LeadBoard Before doing a data save
        /// Updates everything except for the ID
        /// </summary>
        /// <param name="data">Data to update</param>
        public void Update(LeaderBoardModel data)
        {
            if (data == null)
            {
                return;
            }

            Name   = data.Name;
            Profit = data.Profit;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// New LeadBoard, with data passed in
 /// </summary>
 public LeaderBoardModel(LeaderBoardModel data)
 {
     Initialize();
     Update(data);
 }