var productsQuery = _dbContext.Products.AsNoTracking().Select(p => new ProductModel
{
Name = p.Name,
Quantity = p.Quantity.MyExtensionMethod(), // p.Quantity == null ? "None" : p.Quantity.ToString()
Price = p.Price
});
var productsQuery = _dbContext.Products.AsNoTracking().Select(p => new ProductModel
{
Name = p.Name,
Quantity = p.Quantity.MyExtensionMethod(), // p.Quantity == null ? "None" : p.Quantity.ToString()
Price = p.Price
});