@using Groceries.Data; @using Microsoft.EntityFrameworkCore; @inject AppDbContext dbContext @{ ViewBag.Title = "New Transaction"; var datetime = DateTime.Now.ToString("s"); var stores = await dbContext.Stores .OrderBy(store => store.Retailer!.Name) .ThenBy(store => store.Name) .Select(store => new { store.Id, Name = string.Concat(store.Retailer!.Name, " ", store.Name) }) .ToListAsync(); }

New Transaction

Cancel