public ObservableCollection <ResourceCalendar> GetUserResourceCalendars(string userId) { return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId == userId))); }
public ObservableCollection <ResourceCalendar> GetTeamResourceCalendars(string userId) { return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId != userId && !rc.OwningResourceId.StartsWith("conferenceRoom")))); }
public ObservableCollection <ResourceCalendar> GetSharedResourceCalendars() { return(new ObservableCollection <ResourceCalendar>(ResourceCalendars.Where(rc => rc.OwningResourceId.Contains("conferenceRoom")))); }