public ActionResult Create(SubtasksViewModel subtasksViewModel, int projectId, bool subtaskStatus, string subtaskName, string subtaskDescription, string subtaskLabel)
        {
            var project = _pContainer.GetProjectById(projectId);

            if (project == null)
            {
                ViewBag.Error = "You need to use a Project Id that exists.";
                return(View(subtasksViewModel));
            }
            _subtasksContainer.AddSubtask(projectId, subtaskStatus, subtaskName, subtaskDescription, subtaskLabel);
            return(RedirectToAction(nameof(Index)));
        }
        public ActionResult Create(NotesViewModel notesViewModel, string noteName, string description, string urgency, int projectId)
        {
            var project = _pContainer.GetProjectById(projectId);

            if (project == null)
            {
                ViewBag.Error = "You need to use a Project Id that exists.";
                return(View(notesViewModel));
            }
            _nContainer.AddNote(noteName, description, urgency, projectId);
            return(RedirectToAction(nameof(Index)));
        }
        // GET: ProjectsController/Details/5
        public ActionResult Details(int id)
        {
            var project = _pContainer.GetProjectById(id);

            return(View(new ProjectViewModel(project)));
        }