예제 #1
0
 /// <summary>
 /// Handles the Getting all the users based on the search text passed by the user on UI.
 /// </summary>
 private void GetUsers()
 {
     if (!string.IsNullOrEmpty(Strings.Trim(this.m_strSearchText)))
     {
         UserRequestData req = new UserRequestData();
         UserAPI m_refUserApi = new UserAPI();
         req.Type = (this.m_UserType == EkEnumeration.UserTypes.AuthorType ? 0 : 1);
         req.Group = (this.m_UserType == EkEnumeration.UserTypes.AuthorType ? 2 : 888888);
         req.RequiredFlag = 0;
         req.OrderBy = string.Empty;
         req.OrderDirection = "asc";
         req.SearchText = this.m_strSearchText;
         req.PageSize = m_refContentApi.RequestInformationRef.PagingSize;
         req.CurrentPage = this.m_intCurrentPage;
         userList = m_refUserApi.GetAllUsers(ref req);
         this.m_intTotalPages = req.TotalPages;
     }
 }
예제 #2
0
        public IActionResult GetAllUsers(string searchName)
        {
            var result = UserAPI.GetAllUsers($"http://{Request.Host}", searchName);

            return(Ok(result));
        }
예제 #3
0
        public static DataTable GetAllUsers()
        {
            UserAPI _UserAPI = new UserAPI();

            return(_UserAPI.GetAllUsers());
        }
예제 #4
0
 private void GetUsers()
 {
     if (m_strSearchText.Trim() != "")
         {
             UserRequestData req = new UserRequestData();
             UserAPI m_refUserApi = new UserAPI();
             req.Type = System.Convert.ToInt32(this.m_UserType == Ektron.Cms.Common.EkEnumeration.UserTypes.AuthorType ? 0 : 1); // m_intGroupType
             req.Group = this.m_UserType == Ektron.Cms.Common.EkEnumeration.UserTypes.AuthorType ? 2 : 888888;
             req.RequiredFlag = 0;
             req.OrderBy = "";
             req.OrderDirection = "asc";
             req.SearchText = m_strSearchText;
             req.PageSize = m_refContentApi.RequestInformationRef.PagingSize;
             req.CurrentPage = m_intCurrentPage;
             user_list = m_refUserApi.GetAllUsers(ref req);
             // user_list = Me.m_refContent.GetAllUnAssignedDirectoryUser(TaxonomyId)
             m_intTotalPages = req.TotalPages;
         }
 }