add repository working with stored procedures

This commit is contained in:
Dmitrii Kollerov
2026-09-27 13:52:01 +07:00
parent 22451db209
commit 165511b57d
11 changed files with 262 additions and 40 deletions
+1 -1
View File
@@ -56,6 +56,6 @@ public class BookService : IBookService
private async Task<BookDto> GetBookForEdit(Guid bookId)
{
var book = await _bookRepository.GetBookAsync(bookId);
return book ?? throw new ArgumentException();
return book ?? throw new ArgumentException("Book does not exist");
}
}