예제 #1
0
 private bool confirm(MdlStudent student)
 {
     student.Confirmed = true;
     DbStudent dbStudentObj = new DbStudent();
     return dbStudentObj.UpdateProfile(student);
 }
예제 #2
0
        public bool UpdateProfile(string email, int numberOfChildren, bool pet, int numberOfCohabitors, bool disabled,
            string name, string surname, string address, string postCode, string city, string country, string phone)
        {
            DbStudent dbStudentObj = new DbStudent();
            MdlStudent mdlStudentObj = GetStudent(email, numberOfChildren, pet, numberOfCohabitors,
                disabled, name, surname, address, postCode, city, country, phone);

            mdlStudentObj = CalculateProfileScore(mdlStudentObj);
            return dbStudentObj.UpdateProfile(mdlStudentObj);
        }