public static UsersCollection Select_Userss_By_UserStatusSysId(System.Nullable<int> UserStatusSysId) {
     resourceSchema.Dal.Users dbo = null;
     try {
         dbo = new resourceSchema.Dal.Users();
         System.Data.DataSet ds = dbo.Select_Userss_By_UserStatusSysId(UserStatusSysId);
         UsersCollection collection = new UsersCollection();
         if (GlobalTools.IsSafeDataSet(ds)) {
             for (int i = 0; (i < ds.Tables[0].Rows.Count); i = (i + 1)) {
                 Users obj = new Users();
                 obj.Fill(ds.Tables[0].Rows[i]);
                 if ((obj != null)) {
                     collection.Add(obj);
                 }
             }
         }
         return collection;
     }
     catch (System.Exception ) {
         throw;
     }
     finally {
         if ((dbo != null)) {
             dbo.Dispose();
         }
     }
 }