public void SetstdPasswordByID(string username, string password, int studentID, string NewPassword) { WebServiceAccountsRepository webir = new WebServiceAccountsRepository(); WebServiceAccount currentuser = webir.FindByUserName(username); if (currentuser != null) { if (currentuser.Password == password) { VStudentsRepository vempir = new VStudentsRepository(); Student emp = vempir.FindByid2(studentID); emp.Password = NewPassword; vempir.Savestd(emp); } else { } } else { } }