Exemplo n.º 1
0
        public IActionResult Index()
        {
            var ongoingProjects      = _projects.GetAllProjects();
            var projectListViewModel = new ProjectListViewModel(ongoingProjects);

            return(View(projectListViewModel));
        }
Exemplo n.º 2
0
        public ActionResult <IEnumerable <Project> > GetProjects()
        {
            var projects = _projectRepository.GetAllProjects();

            return(Ok(projects));
        }