Initial
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using AutoMapper;
|
||||
using MileageTraker.Web.Models;
|
||||
using MileageTraker.Web.Utility;
|
||||
|
||||
namespace MileageTraker.Web.ViewModels
|
||||
{
|
||||
public class VehiclePartialDetails
|
||||
{
|
||||
[Display(Name = "EHTRA ID")]
|
||||
public string VehicleId { get; set; }
|
||||
|
||||
public string Prog { get; set; }
|
||||
|
||||
[DisplayFormat(NullDisplayText = "Unassigned")]
|
||||
public string Assigned { get; set; }
|
||||
|
||||
public string Notes { get; set; }
|
||||
|
||||
public string ModelYear { get; set; }
|
||||
|
||||
public string Make { get; set; }
|
||||
|
||||
[Display(Name = "Model")]
|
||||
public string CarModel { get; set; }
|
||||
|
||||
public string Color { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
|
||||
[Display(Name = "Tag#")]
|
||||
public string TagNumber { get; set; }
|
||||
|
||||
static VehiclePartialDetails()
|
||||
{
|
||||
Mapper.CreateMap<Vehicle, VehiclePartialDetails>();
|
||||
}
|
||||
|
||||
public VehiclePartialDetails()
|
||||
{}
|
||||
|
||||
public VehiclePartialDetails(Vehicle vehicle)
|
||||
{
|
||||
Mapper.Map(vehicle, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user