public void AddVariableSet(ApiVariableSetResponseModel item) { if (!this.VariableSets.Any(x => x.Id == item.Id)) { this.VariableSets.Add(item); } }
public virtual ApiVariableSetRequestModel MapResponseToRequest( ApiVariableSetResponseModel response) { var request = new ApiVariableSetRequestModel(); request.SetProperties( response.IsFrozen, response.JSON, response.OwnerId, response.RelatedDocumentIds, response.Version); return(request); }
public virtual ApiVariableSetResponseModel MapRequestToResponse( string id, ApiVariableSetRequestModel request) { var response = new ApiVariableSetResponseModel(); response.SetProperties(id, request.IsFrozen, request.JSON, request.OwnerId, request.RelatedDocumentIds, request.Version); return(response); }