public ActionResult Index(int?projectID, string tabMake)
        {
            // If tabMake is null: display default
            if (tabMake == null)
            {
                tabMake = "";
            }

            OpenProjectModel = projectService.GetOpenProjectViewModel(projectID.Value);
            // For actions in view
            ViewBag.newFile       = CreateNewFileModel();
            ViewBag.newMembership = CreateNewMembershipModel();
            ViewBag.newGoal       = CreateNewGoalModel();

            //For the Editor ---> SKOÐA
            List <FileViewModel> AllSolutionFiles = projectService.GetFilesByProject(projectID.Value);

            ViewBag.AllSolutionFiles = AllSolutionFiles;
            ViewBag.Code             = "alert('Hello World!');";
            ViewBag.DocumentID       = 0;
            //ViewBag.ProjectID = projectID;
            ViewBag.UserName = User.Identity.GetUserName();
            ViewBag.UseID    = User.Identity.GetUserId();
            //For the editor
            ViewBag.tabMake = tabMake;

            return(View(OpenProjectModel));
        }
        /// <summary>
        /// Get the view model from the project open
        /// </summary>
        /// <param name="projectID"></param>
        /// <returns>returns the project open</returns>
        public OpenProjectViewModel GetOpenProjectViewModel(int projectID)
        {
            Project project = _db.Projects.Find(projectID);
            OpenProjectViewModel newOpenProjectModel = new OpenProjectViewModel()
            {
                ID             = projectID,
                OwnerID        = project.AspNetUserID,
                SolutionFolder = GetSolutionFolder(project.SolutionFolderID),
                Members        = GetUsersByProject(projectID),
                Goals          = GetGoalsByProject(projectID)
            };

            return(newOpenProjectModel);
        }