public InstagramMainPage() { _activityService = new ActivityService(); _activities = _activityService.GetActivities(); InitializeComponent(); ListActivity.ItemsSource = _activities; }
public IEnumerable <Activity> GetActivities() { return(_activityService.GetActivities()); }