Fix warnings
This commit is contained in:
parent
3824c72191
commit
08bdf72ff6
@ -37,7 +37,7 @@ public class ItemsController : Controller
|
||||
group => group.lastPurchase.DefaultIfEmpty(),
|
||||
(group, lastPurchase) => new ItemListModel.Item(group.item.Id, group.item.Brand, group.item.Name)
|
||||
{
|
||||
HasBarcode = group.item.Barcodes.Any(),
|
||||
HasBarcode = group.item.Barcodes.Count != 0,
|
||||
LastPurchasedAt = lastPurchase != null ? lastPurchase.CreatedAt : null,
|
||||
})
|
||||
.ToListPageModelAsync(page, cancellationToken: HttpContext.RequestAborted);
|
||||
|
Loading…
x
Reference in New Issue
Block a user