public string[] GetUsernameList(string prefixText, int count) { List <string> items = new List <string>(); try { BaseUserControl suc = new BaseUserControl(); List <UserManagementInfo> objList = UserManagementController.GetUsernameByPortalIDAuto(prefixText, 12, count, suc.GetUsername); foreach (UserManagementInfo objInfo in objList) { items.Add(objInfo.UserName); } return(items.ToArray()); } catch { return(items.ToArray()); } }