예제 #1
0
        public JsonPatchDocument <ApiCountryRegionCurrencyRequestModel> CreatePatch(ApiCountryRegionCurrencyRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiCountryRegionCurrencyRequestModel>();

            patch.Replace(x => x.CurrencyCode, model.CurrencyCode);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            return(patch);
        }
예제 #2
0
        public virtual ApiCountryRegionCurrencyRequestModel MapResponseToRequest(
            ApiCountryRegionCurrencyResponseModel response)
        {
            var request = new ApiCountryRegionCurrencyRequestModel();

            request.SetProperties(
                response.CurrencyCode,
                response.ModifiedDate);
            return(request);
        }
예제 #3
0
        public virtual ApiCountryRegionCurrencyResponseModel MapRequestToResponse(
            string countryRegionCode,
            ApiCountryRegionCurrencyRequestModel request)
        {
            var response = new ApiCountryRegionCurrencyResponseModel();

            response.SetProperties(countryRegionCode,
                                   request.CurrencyCode,
                                   request.ModifiedDate);
            return(response);
        }