I have this function:
//change user password
void chgPass(string username, string old_password, string new_password)
{
var result = (from l in this.dbLogin.SLN
where l.user_id.Equals(username)
where l.password.Equals(old_password)
select l).First();
result.password= new_password;
dbLogin.SubmitChanges();
}
I call it like this:
this.loginClient.chgPassAsync(user, old_password, new_password);
Can someone tell me why no changes are maded when I run this... in debuge mode I can see that password field is changed, but when I look in db password isn't changed.