Hi all,
I am working on a project which will be available in both Windows/Web flavour. I have setup a BusinessFacade project and just want to confirm my understanding of BusinessFacade pattern.
I have a usecase of Login Page where user input 3 pieces of information: User Id, Password, Role Id. I need to validate that:* "User Id" exist in the database. * "Password" is correct for the "User Id".* "User Id" belongs to the "Role Id".If any check fails then a LoginFailureException is thrown. Also I want to keep track of how many times user has tried to login.
So I have come up with this code:
Code Snippet
public enum UserInterfaceType{ WEB = 1, WINDOWS = 2}
...
Go to the complete details ...