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

            patch.Replace(x => x.Content, model.Content);
            patch.Replace(x => x.Date, model.Date);
            patch.Replace(x => x.TaggedUserId, model.TaggedUserId);
            patch.Replace(x => x.Time, model.Time);
            return(patch);
        }
        public virtual ApiDirectTweetRequestModel MapResponseToRequest(
            ApiDirectTweetResponseModel response)
        {
            var request = new ApiDirectTweetRequestModel();

            request.SetProperties(
                response.Content,
                response.Date,
                response.TaggedUserId,
                response.Time);
            return(request);
        }
        public virtual ApiDirectTweetResponseModel MapRequestToResponse(
            int tweetId,
            ApiDirectTweetRequestModel request)
        {
            var response = new ApiDirectTweetResponseModel();

            response.SetProperties(tweetId,
                                   request.Content,
                                   request.Date,
                                   request.TaggedUserId,
                                   request.Time);
            return(response);
        }