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); } }
private static void FillCurrencyText(VmModel model, VmDto source) { model.CurrencyText = GetCurrencyText(source.Currency); }