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

            patch.Replace(x => x.Person, model.Person);
            patch.Replace(x => x.PersonId, model.PersonId);
            return(patch);
        }
        public virtual ApiColumnSameAsFKTableRequestModel MapResponseToRequest(
            ApiColumnSameAsFKTableResponseModel response)
        {
            var request = new ApiColumnSameAsFKTableRequestModel();

            request.SetProperties(
                response.Person,
                response.PersonId);
            return(request);
        }
        public virtual ApiColumnSameAsFKTableResponseModel MapRequestToResponse(
            int id,
            ApiColumnSameAsFKTableRequestModel request)
        {
            var response = new ApiColumnSameAsFKTableResponseModel();

            response.SetProperties(id,
                                   request.Person,
                                   request.PersonId);
            return(response);
        }