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

            patch.Replace(x => x.EventId, model.EventId);
            patch.Replace(x => x.RelatedDocumentId, model.RelatedDocumentId);
            return(patch);
        }
        public virtual ApiEventRelatedDocumentRequestModel MapResponseToRequest(
            ApiEventRelatedDocumentResponseModel response)
        {
            var request = new ApiEventRelatedDocumentRequestModel();

            request.SetProperties(
                response.EventId,
                response.RelatedDocumentId);
            return(request);
        }
        public virtual ApiEventRelatedDocumentResponseModel MapRequestToResponse(
            int id,
            ApiEventRelatedDocumentRequestModel request)
        {
            var response = new ApiEventRelatedDocumentResponseModel();

            response.SetProperties(id,
                                   request.EventId,
                                   request.RelatedDocumentId);
            return(response);
        }