public HttpResponseMessage LastestHttpResponseMessageOLE()
        {
            ExchangeDb exchnage = new ExchangeDb();

            IEnumerable<P_fxrates> products = exchnage.GetLatestfxratesOLE();

            // Write the list to the response body.
            var response = Request.CreateResponse(HttpStatusCode.OK, products);
            return response;
        }
        public IHttpActionResult LastestIHttpActionResultOleDB()
        {
            ExchangeDb exchange = new ExchangeDb();
            var product = exchange.GetLatestfxratesOLE();

            if (product == null)
            {
                return NotFound(); // Returns a NotFoundResult
            }
            return Ok(product); // Returns an OkNegotiatedContentResult
        }
        public P_fxrates[] GetLatestfxrates()
        {
            ExchangeDb exchnage = new ExchangeDb();

            return exchnage.GetLatestfxratesOLE();
        }