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

            patch.Replace(x => x.BountyAmount, model.BountyAmount);
            patch.Replace(x => x.CreationDate, model.CreationDate);
            patch.Replace(x => x.PostId, model.PostId);
            patch.Replace(x => x.UserId, model.UserId);
            patch.Replace(x => x.VoteTypeId, model.VoteTypeId);
            return(patch);
        }
        public virtual ApiVoteRequestModel MapResponseToRequest(
            ApiVoteResponseModel response)
        {
            var request = new ApiVoteRequestModel();

            request.SetProperties(
                response.BountyAmount,
                response.CreationDate,
                response.PostId,
                response.UserId,
                response.VoteTypeId);
            return(request);
        }
        public virtual ApiVoteResponseModel MapRequestToResponse(
            int id,
            ApiVoteRequestModel request)
        {
            var response = new ApiVoteResponseModel();

            response.SetProperties(id,
                                   request.BountyAmount,
                                   request.CreationDate,
                                   request.PostId,
                                   request.UserId,
                                   request.VoteTypeId);
            return(response);
        }