Esempio n. 1
0
        public List <CategoryModel> GetAllCategories()
        {
            var entities = _iCategoryDAO.GetAllCategories();
            var models   = CategoryConverter.EntitiesToModels(entities);

            return(models);
        }
Esempio n. 2
0
        public IActionResult GetCategoriesForDisplay()
        {
            List <Category> categoryList = cDao.GetAllCategories();

            return(Ok(categoryList));
        }