Beispiel #1
0
        public async Task <List <CategoryDto> > GetCategories()
        {
            var result = await _categoryManager.FindAll();

            return(_mapper.Map <List <CategoryDto> >(result));
        }
        // Sample page for Categories
        public IActionResult Index()
        {
            var allCategories = _categoryManager.FindAll(_sessionModel.CurrentUser);

            return(View(allCategories));
        }