示例#1
0
 public static usuario IniciarSesion(string user, string pass)
 {
     using (conexionDB db = new conexionDB())
     {
         usuario query = (from u in db.usuario
                          where u.rut == user && u.clave == pass
                          select u).SingleOrDefault();
         return(query);
     }
 }