Пример #1
0
        public void SetLecPasswordByID(string username, string password, int lecturerID, string NewPassword)
        {
            WebServiceAccountsRepository webir       = new WebServiceAccountsRepository();
            WebServiceAccount            currentuser = webir.FindByUserName(username);

            if (currentuser != null)
            {
                if (currentuser.Password == password)
                {
                    VLecturersRepository vempir = new VLecturersRepository();
                    Lecturer             emp    = vempir.FindByid2(lecturerID);
                    emp.Password = NewPassword;
                    vempir.Savestd(emp);
                }
                else
                {
                }
            }

            else
            {
            }
        }