public async Task <IActionResult> CreateCountryRegionCurrency([FromBody] Sales.CountryRegionCurrency value)
        {
            _db.Sales_CountryRegionCurrency.Add(value);
            await _db.SaveChangesAsync();

            return(Ok(value));
        }
        public async Task <IActionResult> EditCountryRegionCurrency(string countryRegionCode, string currencyCode, [FromBody] Sales.CountryRegionCurrency value)
        {
            var existing = await _db.Sales_CountryRegionCurrency.FirstOrDefaultAsync(x => x.CountryRegionCode == countryRegionCode && x.CurrencyCode == currencyCode);

            if (existing == null)
            {
                return(NotFound());
            }

            existing.CountryRegionCode = value.CountryRegionCode;
            existing.CurrencyCode      = value.CurrencyCode;
            existing.ModifiedDate      = value.ModifiedDate;

            _db.Sales_CountryRegionCurrency.Update(existing);
            await _db.SaveChangesAsync();

            return(NoContent());
        }