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