fix error with sending responses
This commit is contained in:
@@ -24,7 +24,7 @@ public class CreateBookEndpoint(BookRepository bookRepository, AuthorRepository
|
||||
}
|
||||
|
||||
await bookRepository.AddAsync(mapper.Map<Book>(req), ct);
|
||||
await Send.OkAsync(cancellation: ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user