mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2026-09-24 23:54:29 +00:00
Use the database ID for showing the USB vendor details.
This commit is contained in:
@@ -49,9 +49,9 @@ public partial class Details
|
||||
|
||||
await using DbContext ctx = await DbContextFactory.CreateDbContextAsync();
|
||||
|
||||
_model = await ctx.UsbVendors.FirstOrDefaultAsync(m => m.VendorId == Id);
|
||||
_model = await ctx.UsbVendors.FirstOrDefaultAsync(m => m.Id == Id);
|
||||
|
||||
_products = await ctx.UsbProducts.Where(p => p.Vendor.VendorId == Id)
|
||||
_products = await ctx.UsbProducts.Where(p => p.Vendor.Id == Id)
|
||||
.OrderBy(static p => p.Product)
|
||||
.ThenBy(static p => p.ProductId)
|
||||
.Select(static p => new UsbProductModel
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
@item.VendorId
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-primary" href="/admin/usb/vendors/@item.VendorId" target="_blank">Details</a>
|
||||
<a class="btn btn-primary" href="/admin/usb/vendors/@item.Id" target="_blank">Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user