Esempio n. 1
0
 public AutoViewModel(auto entity)
 {
     this.id          = entity.Id;
     this.title       = entity.title;
     this.detail      = entity.detail;
     this.price       = entity.price;
     this.date        = entity.date;
     this.customer_id = entity.customer_id;
     this.category_Id = entity.category_Id;
     this.resources   = entity.resources;
     this.marca       = entity.marca;
     this.modelo      = entity.modelo;
     this.tipo        = entity.tipo;
     this.anio        = entity.anio;
     this.kilometraje = entity.kilometraje;
     this.vin         = entity.vin;
     this.condicion   = entity.condicion;
     this.articleType = entity.GetType().BaseType.Name;
 }