예제 #1
0
        public void AddUser(User user)
        {
            if (null == user)
                throw new ArgumentNullException();

            _users.Add(user.Id, user);
        }
예제 #2
0
        public UserResponse(User user)
        {
            if (null == user)
                throw new ArgumentNullException();

            UserId = user.Id;
            UserName = user.Name;
        }