Exemplo n.º 1
0
        public IActionResult Index(int id)
        {
            var project               = _projects.GetProjectById(id);
            var projectViewModel      = new ProjectViewModel(project);
            var projectNotesViewModel = new ProjectNotesViewModel(projectViewModel);

            return(View(projectNotesViewModel));
        }
Exemplo n.º 2
0
        public IActionResult Index(int id)
        {
            var project                  = _projects.GetProjectById(id);
            var projectViewModel         = new ProjectViewModel(project);
            var applicationFormViewModel = new ApplicationFormViewModel(projectViewModel);

            return(View(applicationFormViewModel));
        }