Example #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await _quickLinksService.GetAllQuickLinks();

            return(View(model));
        }
        public async Task <IActionResult> QuickLinksAdmin()
        {
            var allQuickLinksForAdmin = await _quickLinksService.GetAllQuickLinks();

            return(View(GlobalConstants.AdminAreaPath + "QuickLinksAdmin/QuickLinksAdmin.cshtml", allQuickLinksForAdmin));
        }