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

            patch.Replace(x => x.AverageRate, model.AverageRate);
            patch.Replace(x => x.CurrencyRateDate, model.CurrencyRateDate);
            patch.Replace(x => x.EndOfDayRate, model.EndOfDayRate);
            patch.Replace(x => x.FromCurrencyCode, model.FromCurrencyCode);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.ToCurrencyCode, model.ToCurrencyCode);
            return(patch);
        }
        public virtual ApiCurrencyRateRequestModel MapResponseToRequest(
            ApiCurrencyRateResponseModel response)
        {
            var request = new ApiCurrencyRateRequestModel();

            request.SetProperties(
                response.AverageRate,
                response.CurrencyRateDate,
                response.EndOfDayRate,
                response.FromCurrencyCode,
                response.ModifiedDate,
                response.ToCurrencyCode);
            return(request);
        }
        public virtual ApiCurrencyRateResponseModel MapRequestToResponse(
            int currencyRateID,
            ApiCurrencyRateRequestModel request)
        {
            var response = new ApiCurrencyRateResponseModel();

            response.SetProperties(currencyRateID,
                                   request.AverageRate,
                                   request.CurrencyRateDate,
                                   request.EndOfDayRate,
                                   request.FromCurrencyCode,
                                   request.ModifiedDate,
                                   request.ToCurrencyCode);
            return(response);
        }