public IViewComponentResult Invoke() { return(View(_mainCategory.GetAll())); }
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())); }