Exemplo n.º 1
0
 public UserDS.TabUserDataTable GetUserByLogin(string username, string password)
 {
     try
     {
         //use adapter to fill the TabUser table in the userDataSet using the FillByUserNamePassword method
         // method requires active table followed by variables is SQL STMT within the method
         //tabUserAdapter.FillByUsernamePassword(userDataSet.TabUser, username, password);
         tabUserAdapter.FillByUsernamePassword(userDataSet.TabUser, username, password);
         //tabUserAdapter.GetDataByUsernamePassword(username, password);
         return(userDataSet.TabUser); //return the table full of data
     }
     catch (Exception e)
     {
         throw e;
     }
 }