/// <summary>
        /// Updates the user.
        /// </summary>
        /// <param name="user">The user.</param>
        public void UpdateUser(Models.User user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            _manager.UpdateUser(Map(user));
        }
Exemple #2
0
        /// <summary>
        /// Updates the user.
        /// </summary>
        /// <param name="user">The user.</param>
        public void UpdateUser(User user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            bool duplicate = _manager.IsDuplicate(user.SteamUserId, user.FacebookUserId);

            if (duplicate)
            {
                throw new DuplicateSteamUserException();
            }

            _manager.UpdateUser(Map(user));
        }