public bool Exists(Object anObject) { Activity lookUp = anObject as Activity; ActivityAccess context = new ActivityAccess(); return(context.GetAll().Contains(lookUp)); }
public List <Activity> GetAllActivities() { ActivityAccess context = new ActivityAccess(); return(context.GetAll()); }