Exemplo n.º 1
0
        public IEnumerable <ActivityViewModel> GetActivitiesByZip(string zip, int miles)
        {
            List <ActivityViewModel> ret = new List <ActivityViewModel>();

            var activities = _prepOpsDataAccess.ActivitiesByPostalCode(zip, miles);

            foreach (Activity activity in activities)
            {
                ret.Add(new ActivityViewModel(activity));
            }

            return(ret);
        }