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

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
        public virtual ApiSchemaBPersonRequestModel MapResponseToRequest(
            ApiSchemaBPersonResponseModel response)
        {
            var request = new ApiSchemaBPersonRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiSchemaBPersonResponseModel MapRequestToResponse(
            int id,
            ApiSchemaBPersonRequestModel request)
        {
            var response = new ApiSchemaBPersonResponseModel();

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