Cleaned code
This commit is contained in:
@@ -22,7 +22,7 @@ public class UpdateBookEndpoit(BookRepository bookRepository, AutoMapper.IMapper
|
||||
await Send.NotFoundAsync(ct);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
mapper.Map(req, book);
|
||||
await bookRepository.SaveChangesAsync(ct);
|
||||
await Send.NoContentAsync(ct);
|
||||
|
||||
Reference in New Issue
Block a user