public bool Exists(Object anObject) { SubscriptionAccess context = new SubscriptionAccess(); Subscription lookUp = anObject as Subscription; bool exists = GetAllSubscriptions().Contains(lookUp); return(exists); }
private void Insert(Subscription toAdd) { SubscriptionAccess context = new SubscriptionAccess(); context.Add(toAdd); }
public List <Subscription> GetAllSubscriptions() { SubscriptionAccess context = new SubscriptionAccess(); return(context.GetAll()); }