Exemplo n.º 1
0
 private static void FillProductNames(VmModel model, VmDto source)
 {
     foreach (ProductInfo product in model.Products)
     {
         ProductTypes productType = source.Products.Find(p => p.ProductId == product.ProductId).ProductType;
         product.ProductName = GetProductName(productType);
     }
 }
Exemplo n.º 2
0
 private static void FillCurrencyText(VmModel model, VmDto source)
 {
     model.CurrencyText = GetCurrencyText(source.Currency);
 }