public ArticleViewModel(articles article) { this.id = article.Id; this.title = article.title; this.detail = article.detail; this.price = article.price; this.date = article.date; this.category_Id = article.category_Id; this.customer_id = article.customer_id; this.resources = article.resources; this.contacts = article.contacts; this.articleType = article.GetType().BaseType.Name; }