Exemplo n.º 1
0
        public ClearDiscardListStatusCodes ClearDiscardList()
        {
            var allDiscardBooks = bookManager.GetAllBooksInDiscardList();

            if (allDiscardBooks.Count == 0)
            {
                return(ClearDiscardListStatusCodes.NoDiscardBooksToClear);
            }

            bookManager.ClearDiscardList(allDiscardBooks);
            return(ClearDiscardListStatusCodes.Ok);
        }