@using Groceries.Data; @using Microsoft.EntityFrameworkCore; @model (Transaction Transaction, TransactionItem TransactionItem) @inject AppDbContext dbContext @{ ViewBag.Title = "Edit Transaction Item"; var store = await dbContext.Stores .Where(store => store.Id == Model.Transaction.StoreId) .Select(store => string.Concat(store.Retailer!.Name, " ", store.Name)) .SingleAsync(); }