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