Example #1
0
 /// <summary>
 /// Updated the user in the DB using the UserWcf Repreansanataion 
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public bool updateUser(UserWcf u)
 {
     DAL dal = new DAL();
     User dbUser = dal.GetUser(u.ID);
     if (dbUser != null)
     {
         dbUser.money = u.money;
         dbUser.numOfGames = u.numOfGames;
         dal.UpdateDB(dbUser);
         return true; // again no exception handling
     }
     return false; // should handle exception better;
 }