Esempio n. 1
0
 public void AddActivity(Activity activity)
 {
     ActivityList.Add(activity);
     ActivityPersistency.SaveActivity(activity);
     foreach (var dates in activity.Dates)
     {
         var date = new ActivityDate(activity.ID, dates.ToString());
         DatesPersistency.SaveDates(date);
     }
 }
Esempio n. 2
0
 // Aktivitet tilføjes til brugerens aktivitetsliste
 public void AddActivity(Activity activity)
 {
     Activities.Add(activity);
     ActivityPersistency.SaveActivity(activity);
 }