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

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

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

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