public JsonPatchDocument <ApiActionTemplateRequestModel> CreatePatch(ApiActionTemplateRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiActionTemplateRequestModel>();

            patch.Replace(x => x.ActionType, model.ActionType);
            patch.Replace(x => x.CommunityActionTemplateId, model.CommunityActionTemplateId);
            patch.Replace(x => x.JSON, model.JSON);
            patch.Replace(x => x.Name, model.Name);
            patch.Replace(x => x.Version, model.Version);
            return(patch);
        }
        public virtual ApiActionTemplateRequestModel MapResponseToRequest(
            ApiActionTemplateResponseModel response)
        {
            var request = new ApiActionTemplateRequestModel();

            request.SetProperties(
                response.ActionType,
                response.CommunityActionTemplateId,
                response.JSON,
                response.Name,
                response.Version);
            return(request);
        }
        public virtual ApiActionTemplateResponseModel MapRequestToResponse(
            string id,
            ApiActionTemplateRequestModel request)
        {
            var response = new ApiActionTemplateResponseModel();

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