public async Task <IActionResult> Delete(long id) { try { await bookFacade.Delete(id); return(NoContent()); } catch (BookDeleteException ex) { return(BadRequest(ex.Message)); } }
public async Task OnPostDelete(Guid id) { await bookFacade.Delete(id.ToString()); Books = await bookFacade.GetBooks(); }