ШмелевМВ 2 tuần trước cách đây
mục cha
commit
8e15e1b586

+ 1 - 2
AvaloniaApplicationTestNew/ViewModels/AdminPageViewModel.cs

@@ -91,7 +91,7 @@ namespace AvaloniaApplicationTestNew.ViewModels
         {
             LocalListusers = localUser;
             if (!string.IsNullOrEmpty(findText)) LocalListusers = LocalListusers.Where(x => x.Name.Contains(findText)).ToList();
-            if (filtGendr != null && filtGendr.IdGender != 0) Users = Users.Where(x => x.IdGenderNavigation == filtGendr).ToList();
+            if (filtGendr != null && filtGendr.IdGender != 0) LocalListusers = LocalListusers.Where(x => x.IdGenderNavigation == filtGendr).ToList();
         }
         public void InfoUsers(int id)
         {
@@ -110,5 +110,4 @@ namespace AvaloniaApplicationTestNew.ViewModels
             MainWindowViewModel.Self.Page = new Authorization();
         }
     }
-    
 }