This commit is contained in:
@@ -312,9 +312,15 @@ namespace Sockeye.Biz
|
||||
{
|
||||
if (!vc.Has("productname", item.ProductId))
|
||||
{
|
||||
vc.Add(await ct.Product.AsNoTracking().Where(x => x.Id == item.ProductId).Select(x => x.Name).FirstOrDefaultAsync(), "productname", item.ProductId);
|
||||
var productInfo = await ct.Product.AsNoTracking().Where(x => x.Id == item.ProductId).FirstOrDefaultAsync();
|
||||
vc.Add(productInfo.Name, "productname", item.ProductId);
|
||||
vc.Add(productInfo.InitialPrice.ToString(), "productinitialprice", item.ProductId);
|
||||
vc.Add(productInfo.RenewPrice.ToString(), "productrenewprice", item.ProductId);
|
||||
|
||||
}
|
||||
item.ProductViz = vc.Get("productname", item.ProductId);
|
||||
item.RenewPriceViz = vc.GetAsDecimal("productrenewprice", item.ProductId) ?? 0;
|
||||
item.InitialPriceViz = vc.GetAsDecimal("productinitialprice", item.ProductId) ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user