Пример #1
0
        public static Category ParseCategory(MongoCategory category)
        {
            var result = new Category();

            result.CategoryName = category.CategoryName;

            return result;
        }
Пример #2
0
        public static MongoCategory ParseToMongoCategory(Category category)
        {
            var result = new MongoCategory();

            result.CategoryId = category.CategoryId;
            result.CategoryName = category.CategoryName;

            return result;
        }