Пример #1
0
 public void AddProject(ApiProjectResponseModel item)
 {
     if (!this.Projects.Any(x => x.Id == item.Id))
     {
         this.Projects.Add(item);
     }
 }
        public virtual ApiProjectRequestModel MapResponseToRequest(
            ApiProjectResponseModel response)
        {
            var request = new ApiProjectRequestModel();

            request.SetProperties(
                response.AutoCreateRelease,
                response.DataVersion,
                response.DeploymentProcessId,
                response.DiscreteChannelRelease,
                response.IncludedLibraryVariableSetIds,
                response.IsDisabled,
                response.JSON,
                response.LifecycleId,
                response.Name,
                response.ProjectGroupId,
                response.Slug,
                response.VariableSetId);
            return(request);
        }