예제 #1
0
 public static bool UpdateActivity(Activity oActivity)
 {
     return(EntityManager.UpdateObject <Activity>("UpdateActivity", oActivity));
 }
예제 #2
0
 public void AddActivity(Activity activity)
 {
     if (activity.StartTime.Date != Date.Date)
         throw new ArgumentOutOfRangeException("Cannot add activity for date " + activity.StartTime.Date +
                                               " to a training day of date " + Date.Date);
     ActivityList.Add(activity);
 }
예제 #3
0
 public static bool InsertActivity(Activity oActivity)
 {
     return(EntityManager.InsertObject <Activity>("InsertActivity", oActivity));
 }