示例#1
0
 public void AddUser(ApiUserResponseModel item)
 {
     if (!this.Users.Any(x => x.Id == item.Id))
     {
         this.Users.Add(item);
     }
 }
示例#2
0
        public virtual ApiUserRequestModel MapResponseToRequest(
            ApiUserResponseModel response)
        {
            var request = new ApiUserRequestModel();

            request.SetProperties(
                response.AboutMe,
                response.AccountId,
                response.Age,
                response.CreationDate,
                response.DisplayName,
                response.DownVote,
                response.EmailHash,
                response.LastAccessDate,
                response.Location,
                response.Reputation,
                response.UpVote,
                response.View,
                response.WebsiteUrl);
            return(request);
        }