Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        //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));
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }