fix error with sending responses
This commit is contained in:
@@ -25,6 +25,6 @@ public class UpdateBookEndpoit(BookRepository bookRepository, AutoMapper.IMapper
|
||||
|
||||
mapper.Map(req, book);
|
||||
await bookRepository.SaveChangesAsync(ct);
|
||||
await Send.OkAsync(cancellation: ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user