Пример #1
0
        public List <CategoryModel> GetCategoryList()
        {
            var CategoryList = db.Category.ToList();
            var map          = MapperObject.CreateCategoryList(CategoryList);

            return(map);
        }
Пример #2
0
        public List <CategoryModel> GetCategory()
        {
            var category = db.Category.ToList();

            return(MapperObject.CreateCategoryList(category));
        }