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

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

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

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