private bool confirm(MdlStudent student) { student.Confirmed = true; DbStudent dbStudentObj = new DbStudent(); return dbStudentObj.UpdateProfile(student); }
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); }