public object GetByDate(string key, decimal longitude, decimal latitude, DateTime dt) { var client = new DarkskyClient(key); var weather = client.Get(longitude, latitude, dt); return(Ok(weather)); }
public object GetByDateAarhus(string key, DateTime dt) { //The coordinates for Aarhus city decimal latitude = (decimal)10.2039; decimal longitude = (decimal)56.1629; var client = new DarkskyClient(key); var weather = client.Get(longitude, latitude, dt); return(Ok(weather)); }