public static bool UpdateActivity(Activity oActivity) { return(EntityManager.UpdateObject <Activity>("UpdateActivity", oActivity)); }
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); }
public static bool InsertActivity(Activity oActivity) { return(EntityManager.InsertObject <Activity>("InsertActivity", oActivity)); }