public ActionResult Index() { var projectId = new ProjectId(UserContext.CurrentProjectId); List <UserInfo> userList = _userQueryService.GetUsersByProjectId(projectId).ToList(); List <ProfileViewModel> modelUser = userList.Select(userInfo => new ProfileViewModel(userInfo.UserId, userInfo.FirstName, userInfo.LastName, userInfo.Email, userInfo.Phone, userInfo.Image ?? "~/Content/images/user.png", userInfo.DateOfBirth, _userQueryService.GetProjectRoleForUser(projectId, new UserId(userInfo.UserId)).Name, userInfo.Mood == null ? 0 : userInfo.Mood.Rate)).ToList(); return(View(new TeamViewModel { users = modelUser, projectId = projectId })); }