ШмелевМВ hace 2 semanas
padre
commit
8e15e1b586
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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();
         }
     }
-    
 }