private void SetListActionViewBags(IProjectPoco projectWithUsers) { var projectUsers = projectWithUsers.ProjectUsers.Select(p => p.User); ViewBag.PId = ShortGuid.Encode(projectWithUsers.Id); ViewBag.ProjectUsers = projectUsers.ToDictionary(p => p.Id, d => d.UserName); ViewBag.PriorityList = lookupService.GetAllTaskPriority().ToDictionary(p => p.Id, d => d.Name); ViewBag.StatusList = lookupService.GetAllTaskStatus().ToDictionary(p => p.Id, d => d.Name); }