//public DataTable GetUserListForPasswordFormatChange(int siteId) //{ // if (AppSettings.UseRelatedSiteMode) { siteId = AppSettings.RelatedSiteId; } // DataTable dt = new DataTable(); // dt.Columns.Add("UserID", typeof(int)); // dt.Columns.Add("PasswordSalt", typeof(String)); // dt.Columns.Add("Pwd", typeof(String)); // using (DbDataReader reader = dbSiteUser.GetUserList(siteId)) // { // while (reader.Read()) // { // DataRow row = dt.NewRow(); // row["UserID"] = reader["UserID"]; // row["PasswordSalt"] = reader["PasswordSalt"]; // row["Pwd"] = reader["Pwd"]; // dt.Rows.Add(row); // } // } // return dt; //} public int GetCount(int siteId) { if (multiTenantOptions.UseRelatedSitesMode) { siteId = multiTenantOptions.RelatedSiteId; } return(dbSiteUser.UserCount(siteId)); }
public int GetCount(int siteId) { return(dbSiteUser.UserCount(siteId)); }