Exemple #1
0
 /// <summary>
 /// delet book by id.
 /// </summary>
 /// <param name="id"></param>
 public async Task DeleteBook(string id)
 {
     await _booksRepository.DeleteBookById(id);
 }
Exemple #2
0
 public bool BookDelete(int id)
 {
     return(_booksRepository.DeleteBookById(id));
 }
 public void DeleteBookById(int id)
 {
     _repo.DeleteBookById(id);
 }