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

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

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

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