|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help validating in business logic layerI have created a tableadaptor in VWD called
"MemberUsernameTableAdaptor" with a "GetUsername()" method. The method requires the @username parameter and will then try matching it up in the username field of a table. As the usernames are all unique, if the username exists a 1 row dataset will be returned, if not the dataset will be empty. Now I want to use the DAL above to validate a username entered by a user to see whether it already exists or not. It could be in the form of a function which simply takes the parameter, checks whether a username exists or not and then returns true or false. I want to write the code for this validation in a business logic layer ..vb class. But I don't know how, as I am confused about the syntax. This is my first time in trying to write code in a 3 layered structure. Can somebody help? |
|||||||||||||||||||||||