Ejemplo n.º 1
0
 public static string GetClientCarNmb(string username)
 {
     using (var db = new SSSEntities())
     {
         //return db.UserSet.Find(username).CarNmb;
         return("test");
     }
 }
Ejemplo n.º 2
0
 public static bool IsLegalClient(string username, string password)
 {
     username = username.ToLower();
     using (var db = new SSSEntities())
     {
         /*var user = db.UserSet.Find(username);
          * return user != null && (user.Password.Equals(password));*/
         if (username == "test" && password == "test")
         {
             return(true);
         }
         return(false);
     }
 }