Example #1
0
        public TicketHistory[] GetHistory(IDatabaseProvider db)
        {
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }
            if (ID == InvalidID)
            {
                string message = Resources.String_CurrentObjectDoesNotExistInTheDatabase;
                throw new InvalidOperationException(message);
            }

            return(TicketHistory.GetTicketHistoryByTicketID(db, ID));
        }