public IActionResult Index()
        {
            var project = _projectService.GetAllPublicProjects();
            var model   = _projectModelFactory.GetModelListFromProjectList(project.ToList());

            return(View("~/Plugins/Projects/Views/Project/Index.cshtml", model));
        }
Esempio n. 2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = _projectModelfactory.GetModelListFromProjectList(_projectService.GetLastPublishedProjects(4).ToList());

            return(await Task.FromResult((IViewComponentResult)View("~/Plugins/Projects/Views/Shared/Default.cshtml", model)));
        }