Beispiel #1
0
        public IViewComponentResult Invoke()
        {
            ViewBag.WorkAreas = _mapper.Map <List <WorkAreaListDto> >((_workAreaService.GetWokrAreasWithCategoryAsync().Result).Data);

            ViewBag.Articles = _mapper.Map <List <ArticleListDto> >((_articleservice.GetArticlesTop6Async().Result).Data);

            return(View());
        }
        public async Task <IActionResult> Index()
        {
            TempData["Active"]          = "workarea";
            ViewBag.EmptyWorkAreas      = (await _categoryService.GetCategoriesWithNotSelectedWorkAreaAsync()).Data;
            ViewBag.EmptyWorkAreasCount = (await _categoryService.GetCategoriesWithNotSelectedWorkAreaAsync()).Data.Count;

            return(View(_mapper.Map <List <WorkAreaListDto> >((await _workAreaService.GetWokrAreasWithCategoryAsync()).Data)));
        }
        public async Task <IActionResult> Index()
        {
            TempData["Active"] = "home";
            ViewBag.Title      = "Anasayfa";

            ViewBag.TotalCategory           = (await _categoryService.GetAllAsync()).Data.Count;
            ViewBag.TotalArticle            = (await _articleService.GetAllAsync()).Data.Count;
            ViewBag.TotalWorkArea           = (await _workAreaService.GetWokrAreasWithCategoryAsync()).Data.Count;
            ViewBag.TotalNotAssigntWorkArea = (await _categoryService.GetCategoriesWithNotSelectedWorkAreaAsync()).Data.Count;
            return(View());
        }
Beispiel #4
0
 public async Task <IActionResult> Index()
 {
     ViewBag.Title      = "Çalışma Alanları";
     TempData["Active"] = "workareas";
     return(View(_mapper.Map <List <WorkAreaListDto> >((await _workAreaService.GetWokrAreasWithCategoryAsync()).Data)));
 }