Exemple #1
0
        public async Task <IActionResult> GetCategories()
        {
            var result = await _storageService
                         .GetCategoriesAsync()
                         .OrFailAsync();

            return(Ok(result));
        }