public static string GetClientCarNmb(string username) { using (var db = new SSSEntities()) { //return db.UserSet.Find(username).CarNmb; return("test"); } }
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); } }