Beispiel #1
0
        public string Delete(int idBook)
        {
            var number = _bookDao.Delete(idBook);

            return(number >= 0 ? $"Удаление успешно" : $"Ошибка при удалении с id = {idBook}");
        }
Beispiel #2
0
 public IActionResult Delete([FromForm] string id)
 {
     _bookDao.Delete(id);
     return(Ok());
 }
Beispiel #3
0
 public bool Delete(int id)
 {
     return(books.Delete(id));
 }