public IEnumerable <ActivityViewModel> GetActivitiesByLocation(double latitude, double longitude, int miles) { List <ActivityViewModel> ret = new List <ActivityViewModel>(); var activities = _allReadyDataAccess.ActivitiesByGeography(latitude, longitude, miles); foreach (Activity activity in activities) { ret.Add(new ActivityViewModel(activity)); } return(ret); }
public List <Models.Activity> Handle(ActivitiesByGeographyQuery message) { return(dataAccess.ActivitiesByGeography(message.Latitude, message.Longitude, message.Miles).ToList()); }