c# decimal data money annotation code example Example: .net mvc decimal displayformat currency [DataType(DataType.Currency)] public float? Cost{ get; set; }