Esempio n. 1
0
        public virtual ApiCurrencyRequestModel MapResponseToRequest(
            ApiCurrencyResponseModel response)
        {
            var request = new ApiCurrencyRequestModel();

            request.SetProperties(
                response.ModifiedDate,
                response.Name);
            return(request);
        }
Esempio n. 2
0
        public virtual ApiCurrencyResponseModel MapRequestToResponse(
            string currencyCode,
            ApiCurrencyRequestModel request)
        {
            var response = new ApiCurrencyResponseModel();

            response.SetProperties(currencyCode,
                                   request.ModifiedDate,
                                   request.Name);
            return(response);
        }