Add currency attribute
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using AutoMapper;
|
||||
using MileageTraker.Web.Attributes;
|
||||
using MileageTraker.Web.ViewModels.Log;
|
||||
|
||||
namespace MileageTraker.Web.ViewModels.FuelLog
|
||||
@@ -44,6 +45,7 @@ namespace MileageTraker.Web.ViewModels.FuelLog
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Total Price")]
|
||||
[Currency]
|
||||
public decimal TotalPrice { get; set; }
|
||||
|
||||
// Matched log
|
||||
|
||||
Reference in New Issue
Block a user