Beispiel #1
0
        public async Task <IActionResult> DeleteBook(Guid bookId)
        {
            var success = await _booksProvider.DeleteBookAsync(bookId);

            if (success)
            {
                return(View("ShowMessage", new MessageModel("/Librarian/Index", "Книга успешно удалена", false, 1)));
            }
            return(View("ShowMessage", new MessageModel("/Librarian/Index", "Произошла ошибки при удалении", true, 1)));
        }