public void AddUser(ApiUserResponseModel item) { if (!this.Users.Any(x => x.Id == item.Id)) { this.Users.Add(item); } }
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); }