|
12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-
- namespace importer.RestObjects
- {
- [JsonObject(MemberSerialization.OptIn)]
- public class Model
- {
- [JsonProperty(PropertyName = "CreateDate")]
- public DateTime CreateDate { get; set; }
- [JsonProperty(PropertyName = "CreateUserID")]
- public int CreateUserID { get; set; }
- [JsonProperty(PropertyName = "Description")]
- public string Description { get; set; }
- [JsonProperty(PropertyName = "ID")]
- public int ID { get; set; }
- [JsonProperty(PropertyName = "IsActive")]
- public bool IsActive { get; set; }
- [JsonProperty(PropertyName = "Make")]
- public Make Make { get; set; }
- [JsonProperty(PropertyName = "MakeID")]
- public int MakeID { get { return this.Make != null ? this.Make.ID : 0; } set { value = this.Make != null ? this.Make.ID : 0; } }
- [JsonProperty(PropertyName = "Name")]
- public string Name { get; set; }
- [JsonProperty(PropertyName = "Product")]
- public Product Product { get; set; }
- [JsonProperty(PropertyName = "ProductID")]
- public int ProductID { get { return this.Product != null ? this.Product.ID : 0; } set { value = this.Product != null ? this.Product.ID : 0; } }
- [JsonProperty(PropertyName = "UpdateDate")]
- public DateTime? UpdateDate { get; set; }
- [JsonProperty(PropertyName = "UpdateUserID")]
- public int? UpdateUserID { get; set; }
- }
- }
|