public IHttpActionResult GetCountry(int id)
        {
            try
            {
                db.GetCircuits();
                if (db.Circuits[id] == null)
                {
                    return(NotFound());
                }

                return(Ok(db.Circuits[id]));
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }
 public IEnumerable <Circuit> GetAllCountries()
 {
     db.GetCircuits();
     return(db.Circuits.Values);
 }
 public IEnumerable <Circuit> GetAllCircuits()
 {
     return(db.GetCircuits().Values);
 }