asp.net mvc razor multiply two item and convert to string

When I write @(line.Quantity * line.Product.Price).ToString("c") the result is

39,00.ToString("c") 

and @line.Quantity * line.Product.Price.ToString("c") result is

2 * line.Product.Price.ToString("c") 

How can i multiply two values and convert it to string in a razor view?

14
задан jgauffin 8 December 2010 в 11:31
поделиться