ШмелевМВ 2 weeks ago
parent
commit
8e15e1b586
1 changed files with 1 additions and 2 deletions
  1. 1 2
      AvaloniaApplicationTestNew/ViewModels/AdminPageViewModel.cs

+ 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();
         }
     }
-    
 }