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

            patch.Replace(x => x.Type, model.Type);
            return(patch);
        }
        public virtual ApiPostHistoryTypesRequestModel MapResponseToRequest(
            ApiPostHistoryTypesResponseModel response)
        {
            var request = new ApiPostHistoryTypesRequestModel();

            request.SetProperties(
                response.Type);
            return(request);
        }
        public virtual ApiPostHistoryTypesResponseModel MapRequestToResponse(
            int id,
            ApiPostHistoryTypesRequestModel request)
        {
            var response = new ApiPostHistoryTypesResponseModel();

            response.SetProperties(id,
                                   request.Type);
            return(response);
        }