Пример #1
0
        private async Task <List <CATEGORY> > FillCategory()
        {
            var listCategory = await _service.GetAllCategoryAsync();

            ViewData["categories"] = new SelectList(listCategory, "IdCategory", "Description");
            return(listCategory);
        }