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

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

            return(Ok(categoryList));
        }