示例#1
0
        public async Task <IActionResult> CancelReservation(Guid bookId)
        {
            var success = await _clientProvider.CancelReservation(bookId);

            if (!success)
            {
                return(View("ShowMessage", new MessageModel("/Client/ReservedBooks", "Произошла ошибка при отмене бронирования", true)));
            }
            return(View("ShowMessage", new MessageModel("/Client/ReservedBooks", "Бронирование книги успешно отменено")));
        }