Refactor BookScansController and Iso31661NumericController methods to use synchronous Task return types for improved readability

This commit is contained in:
2025-11-13 19:00:38 +00:00
parent fc6238aef1
commit 34d76fd646
2 changed files with 4 additions and 4 deletions

View File

@@ -45,8 +45,8 @@ public class BookScansController(MarechaiContext context) : ControllerBase
[AllowAnonymous]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
public async Task<List<Guid>> GetGuidsByBookAsync(long bookId) =>
await context.BookScans.Where(p => p.BookId == bookId).Select(p => p.Id).ToListAsync();
public Task<List<Guid>> GetGuidsByBookAsync(long bookId) =>
context.BookScans.Where(p => p.BookId == bookId).Select(p => p.Id).ToListAsync();
[HttpGet]
[AllowAnonymous]