예제 #1
0
파일: BookAPI.cs 프로젝트: FannyUhr/Library
        public ClearDiscardListStatusCodes ClearDiscardList()
        {
            var allDiscardBooks = bookManager.GetAllBooksInDiscardList();

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

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