Esempio n. 1
0
        public void Delete(int id)
        {
            List <AuthorInBook> aBook = _authorInBookRepository.GetBook(id).ToList();

            if (aBook != null)
            {
                _authorInBookRepository.Delete(aBook);
            }
        }
Esempio n. 2
0
        public void Delete(int id)
        {
            List <AuthorInBook> author = _authorInBookRepository.GetAuthor(id).ToList();

            if (author != null)
            {
                _authorInBookRepository.Delete(author);
            }
        }