Here is the problem:
[purple]Although .NET objects have a rich security architecture supporting them, it is necessary that the application take advantage of this information to implement the intended business rules that will support the application that the programmer is creating the object for. Using a word document, create a method called ChangeGrade that takes the value of the old grade as a string, the new grade as a string, the course number as a string, and semester taken as a string. If the person making the request has the role of Registrar, stored in a private value called strUserRole, then you should call the internal routine pvtChangeGrade with parameters sent to your method. If the user is not in the role of Registrar, then you should raise an exception. For the purpose of this assignment, the specific details of the routine pvtChangeGrade are not important, and all parameters are assumed to be identical to those passed to your method. [/purple]
I have created the "try" statement here:
strUserRole = "Registrar"
If strUserRole = "Registrar" Then
Throw New Exception
Catch ex As Exception
MessageBox.Show("You do not have access to change the grades", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand)
End Try [/red]
But I am just not sure how to begin the method, Should it be something like this?
[blue]Public Sub ChangeGrade(byval oldgrade as string, byval newgrade as string, byval coursenumber as string, byval semester as string) handles changegrade [/blue]
???? Thanks in advance!