示例#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;
        }