// GET: Projects/CreateNote/5 public async Task <IActionResult> CreateNote(int id) { if (id < 1) { return(NotFound()); } var project = await _projectsService.GetProject(id); if (project == null) { return(NotFound()); } var projectViewModel = ProjectFactory.GetNoteViewModel(project); return(View(projectViewModel)); }