// GET: ProjectUsers/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProjectUser projectUser = ProjectUserHelper.GetProjectUser(id);

            if (projectUser == null)
            {
                return(HttpNotFound());
            }
            return(View(projectUser));
        }
        // GET: ProjectUsers/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProjectUser projectUser = ProjectUserHelper.GetProjectUser(id);

            if (projectUser == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ProjectId = new SelectList(ProjectHelper.GetProjects(), "Id", "Name", projectUser.ProjectId);
            ViewBag.UserId    = new SelectList(UserHelper.GetAllUsers(), "Id", "Email", projectUser.UserId);
            return(View(projectUser));
        }