public virtual ActionResult GetUsers(MembersListSearchModel listSearch) { var(activeUsers, isLastRequest) = GetActiveUsers(listSearch.Map <ActiveMemberSearchQuery>()); var model = GetUsersRowsViewModel(); model.SelectedColumns = UsersPresentationHelper.ExtendIfGroupMembersPage(listSearch.GroupId, UsersPresentationHelper.GetProfileColumns()); model.Members = activeUsers; model.IsLastRequest = isLastRequest; return(PartialView(UsersRowsViewPath, model)); }
//TODO Configure elastic for search among not invited users. public virtual ActionResult ForInvitation(MembersListSearchModel listSearch) { var(activeUsers, isLastRequest) = GetActiveUsers(listSearch.Map <ActiveMemberSearchQuery>()); var model = GetUsersRowsViewModel(); model.SelectedColumns = UsersPresentationHelper.AddManagementColumn(UsersPresentationHelper.GetProfileColumns()); model.Members = activeUsers; model.IsLastRequest = isLastRequest; model.IsInvite = listSearch.IsInvite; return(PartialView(InviteUserRowViewPath, model)); }
public virtual MembersRowsViewModel ForInvitation([FromBody] MembersListSearchModel listSearch) { var(activeUsers, isLastRequest) = GetActiveUsers(listSearch.Map <ActiveMemberSearchQuery>(), listSearch.GroupId); var model = GetUsersRowsViewModel(listSearch.GroupId); model.SelectedColumns = UsersPresentationHelper.AddManagementColumn(UsersPresentationHelper.GetProfileColumns()); model.Members = activeUsers; model.IsLastRequest = isLastRequest; model.IsInvite = listSearch.IsInvite; return(model); }
public virtual MembersRowsViewModel GetUsers([FromBody] MembersListSearchModel listSearch) { var(activeUsers, isLastRequest) = GetActiveUsers(listSearch.Map <ActiveMemberSearchQuery>(), listSearch.GroupId); var model = GetUsersRowsViewModel(listSearch.GroupId); model.SelectedColumns = UsersPresentationHelper.ExtendIfGroupMembersPage(listSearch.GroupId, UsersPresentationHelper.GetProfileColumns()); model.Members = activeUsers; model.IsLastRequest = isLastRequest; return(model); }