// Remove all time table
        public void RemoveTimeTable(string userId)
        {
            var events = TimeTableEvents
                         .Where(e => e.UserId == userId);

            TimeTableEvents.RemoveRange(events);
            SaveChanges();
        }
        // Remove time table event by name
        public bool TryToRemoveTimeTableEvent(string userId, string eventName)
        {
            var ev = TimeTableEvents
                     .Where(e => e.UserId == userId && e.Name.ToLower() == eventName.ToLower())
                     .FirstOrDefault();

            if (ev == null)
            {
                return(false);
            }
            TimeTableEvents.Remove(ev);
            SaveChanges();
            return(true);
        }
 // Get all TT events for this user
 public IQueryable <TTimeTableEvent> GetTimeTableEvents(string userId)
 {
     return(TimeTableEvents.Where(u => u.UserId == userId));
 }