Example #1
0
        public async Task <IActionResult> GetCategories()
        {
            _logger.LogInformation($"GET Todo categories");
            var categories = await _todosService.GetCategories();

            var categoriViews = _mapper.Map <List <TodoCategoryView> >(categories);

            return(Ok(categoriViews));
        }