Beispiel #1
0
 public void AddProjectGroup(ApiProjectGroupResponseModel item)
 {
     if (!this.ProjectGroups.Any(x => x.Id == item.Id))
     {
         this.ProjectGroups.Add(item);
     }
 }
        public virtual ApiProjectGroupRequestModel MapResponseToRequest(
            ApiProjectGroupResponseModel response)
        {
            var request = new ApiProjectGroupRequestModel();

            request.SetProperties(
                response.DataVersion,
                response.JSON,
                response.Name);
            return(request);
        }
        public virtual ApiProjectGroupResponseModel MapRequestToResponse(
            string id,
            ApiProjectGroupRequestModel request)
        {
            var response = new ApiProjectGroupResponseModel();

            response.SetProperties(id,
                                   request.DataVersion,
                                   request.JSON,
                                   request.Name);
            return(response);
        }