add repository working with stored procedures
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user