Пример #1
0
        public override void Filtr()
        {
            if (Check())
            {
                if (search.Set == true)
                {
                    search.Users = repository.GetFilteredUsersCity(search.model.City, search.Users);
                    search.SetState(search.Specialization);
                }
                else if (search.Set == false)
                {
                    search.Users = repository.GetFilteredUsersCity(search.model.City);
                    search.Set   = true;
                    //search.SetState(search.Specialization);
                }
            }

            search.SetState(search.Specialization);
        }
Пример #2
0
 public override void Filtr()
 {
     if (Check())
     {
         if (search.Set == true)
         {
             search.Users = repository.GetFilteredUsersDate((DateTime)search.model.Date, search.Users);
         }
         else if (search.Set == false)
         {
             search.Users = repository.GetFilteredUsersDate((DateTime)search.model.Date);
             search.Set   = true;
         }
     }
     search.SetState(search.Hour);
 }
Пример #3
0
 public override void Filtr()
 {
     search.SetState(search.City);
 }