public static bool Login(string userName, string password)
 {
     using (rentalCarsEntities entities = new rentalCarsEntities())
     {
         return(entities.manneger.Any(m => m.userName == userName && m.password == password));
     }
 }
 public static bool Login(string userName, string password)
 {
     using (rentalCarsEntities entities = new rentalCarsEntities())
     {
         return(entities.Workers.Any(u => u.user_name == userName && u.password == password));
     }
 }