예제 #1
0
 public void AddVariableSet(ApiVariableSetResponseModel item)
 {
     if (!this.VariableSets.Any(x => x.Id == item.Id))
     {
         this.VariableSets.Add(item);
     }
 }
예제 #2
0
        public virtual ApiVariableSetRequestModel MapResponseToRequest(
            ApiVariableSetResponseModel response)
        {
            var request = new ApiVariableSetRequestModel();

            request.SetProperties(
                response.IsFrozen,
                response.JSON,
                response.OwnerId,
                response.RelatedDocumentIds,
                response.Version);
            return(request);
        }
예제 #3
0
        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);
        }