Exemplo n.º 1
0
        public void DeleteAll(int bookShopId)
        {
            var bookShop = GetBookShopIncludeBooksById(bookShopId);

            _dbContext.RemoveRange(bookShop.Books);
            _dbContext.SaveChanges();
        }