Пример #1
0
        public void Delete(int bookID, int studentID)
        {
            if (bookID == 0)
            {
                throw new ArgumentException("bookID");
            }

            if (studentID == 0)
            {
                throw new ArgumentException("studentID");
            }

            Borrow Borrow = _borrowRepository.Find(bookID, studentID);

            _borrowRepository.Delete(Borrow);
        }
 public async Task Delete(long id)
 {
     await _iBorrowRepository.Delete(id);
 }