Ejemplo n.º 1
0
 public void AddDeploymentProcess(ApiDeploymentProcessResponseModel item)
 {
     if (!this.DeploymentProcesses.Any(x => x.Id == item.Id))
     {
         this.DeploymentProcesses.Add(item);
     }
 }
        public virtual ApiDeploymentProcessRequestModel MapResponseToRequest(
            ApiDeploymentProcessResponseModel response)
        {
            var request = new ApiDeploymentProcessRequestModel();

            request.SetProperties(
                response.IsFrozen,
                response.JSON,
                response.OwnerId,
                response.RelatedDocumentIds,
                response.Version);
            return(request);
        }
        public virtual ApiDeploymentProcessResponseModel MapRequestToResponse(
            string id,
            ApiDeploymentProcessRequestModel request)
        {
            var response = new ApiDeploymentProcessResponseModel();

            response.SetProperties(id,
                                   request.IsFrozen,
                                   request.JSON,
                                   request.OwnerId,
                                   request.RelatedDocumentIds,
                                   request.Version);
            return(response);
        }