Пример #1
0
 public IViewComponentResult Invoke()
 {
     return(View(_mainCategory.GetAll()));
 }
Пример #2
0
 public IActionResult Index()
 {
     return(View(_mainCategory.GetAll()));
     //return Json(_mainCategory.GetAll());
 }
 public async Task <List <CategoryDTO> > GetAll()
 {
     return(_Mapper.Map <List <CategoryDTO> >(await _mainCategoryRepository.GetAll()));
 }