public ActionResult Edit(UsersProjectUpdateDetails model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    UsersProjectLogic.UpdateUserProject(model.userProject);
                    return(RedirectToAction("Create", new { projectId = model.userProject.ProjectId }));
                }
                catch (Exception e)
                {
                    LogsLogic.InsertLog(new Log()
                    {
                        Message    = e.Message,
                        StackTrace = e.StackTrace,
                        StoryName  = "ManagementProject/UserProjects/Edit(Post)",
                        Parameters = new JavaScriptSerializer().Serialize(model)
                    });
                }
            }
            UsersProjectUpdateDetails newModel = UsersProjectLogic.GetUserProjectModelForCreate(model.userProject.ProjectId);

            model.projectRoles = newModel.projectRoles;
            return(View(model));
        }
        public ActionResult Create(int projectId)
        {
            UsersProjectUpdateDetails model = new UsersProjectUpdateDetails();

            try
            {
                model = UsersProjectLogic.GetUserProjectModelForCreate(projectId);
            }
            catch (Exception e)
            {
                LogsLogic.InsertLog(new Log()
                {
                    Message    = e.Message,
                    StackTrace = e.StackTrace,
                    StoryName  = "ManagementProject/UserProjects/Create(Get)",
                });
            }
            return(View("Create", model));
        }