public ActionResult Update(int id) { ViewBag.Action = "Update"; ProjectFormViewModel viewModel = new ProjectFormViewModel() { Project = projectHelper.GetProject(id), UsersList = new SelectList(db.Users.ToList(), "Id", "UserName"), SelectedId = projectHelper.GetProjectUserIds(id) }; return(View("CreateOrUpdateForm", viewModel)); }