public void AddFacebookEvent(string facebookId) { if (FacebookEvents.Any(c => c.FacebookId == facebookId)) { throw new FacebookEventAlreadyExistsException(facebookId); } FacebookEvents.Add(FacebookEvent.Create(facebookId)); }
public void RemoveFacebookEvent(string facebookEventId) { var ev = FacebookEvents.SingleOrDefault(c => c.FacebookId == facebookEventId); FacebookEvents.Remove(ev); }