I have following POCO with Cost as float.
public class CostChart
{
public string itemType { get; set; }
public float? Cost{ get; set; }
}
I need to return Cost in currency format e.g.
$U 4.882,50.
What data annotation should I use?
This is how I am displaying in my view.
<td>@Model.Cost</td>