// save or register student
        public string RegisterStudent(Student student)
        {
            if (studentGateway.EmailIsExists(student.Email))
            {
                return("Exists");
            }
            else
            {
                student.RegNo = MakeRegistrationNumber(student);
                System.Diagnostics.Debug.Write(student.RegNo);

                int rowsAffected = studentGateway.RegisterStudent(student);

                if (rowsAffected > 0)
                {
                    return("Success");
                }
                else
                {
                    return("Failed");
                }
            }
        }