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.Password, response.Username); return(request); }
public virtual ApiUserResponseModel MapRequestToResponse( int id, ApiUserRequestModel request) { var response = new ApiUserResponseModel(); response.SetProperties(id, request.Password, request.Username); return(response); }