Пример #1
0
        public TestCategory ToBase()
        {
            var category = new TestCategory();

            category.Id = this.Id;
            category.Name = this.Name;

            return category;
        }
Пример #2
0
 public TestCategoryW(TestCategory category)
 {
     this.Id = category.Id;
     this.Name = category.Name;
 }