예제 #1
0
 public void AddActionTemplateVersion(ApiActionTemplateVersionResponseModel item)
 {
     if (!this.ActionTemplateVersions.Any(x => x.Id == item.Id))
     {
         this.ActionTemplateVersions.Add(item);
     }
 }
        public virtual ApiActionTemplateVersionRequestModel MapResponseToRequest(
            ApiActionTemplateVersionResponseModel response)
        {
            var request = new ApiActionTemplateVersionRequestModel();

            request.SetProperties(
                response.ActionType,
                response.JSON,
                response.LatestActionTemplateId,
                response.Name,
                response.Version);
            return(request);
        }
        public virtual ApiActionTemplateVersionResponseModel MapRequestToResponse(
            string id,
            ApiActionTemplateVersionRequestModel request)
        {
            var response = new ApiActionTemplateVersionResponseModel();

            response.SetProperties(id,
                                   request.ActionType,
                                   request.JSON,
                                   request.LatestActionTemplateId,
                                   request.Name,
                                   request.Version);
            return(response);
        }