Exemplo n.º 1
0
        public bool checkCodeExist(string code)
        {
            //DB find, student update confirmed
            MdlStudent studentObj = new MdlStudent();
            studentObj.ConfirmationCode = code;
            DbStudent dbStudent = new DbStudent();
            using (TransactionScope scope = new TransactionScope())
            {
                //get student by confirmation code
                studentObj = dbStudent.GetStudentData(studentObj.ConfirmationCode, "code");

                scope.Complete();
            }

            if (studentObj != null)
                return confirm(studentObj);
            else
                return false;
        }
Exemplo n.º 2
0
 public MdlStudent GetStudentData(string email)
 {
     DbStudent dbStudentObj = new DbStudent();
     return dbStudentObj.GetStudentData(email);
 }