What we need to have in a business logical layer (BLL)

I know this is a very simple question. But I'm really not able to understand what we should do in BLL. Let me give you an example.
Consider the Login.aspx web page, which is used to facilitate user login.
In this case, Login.aspx will have two text fields and one login button. (Presentation Level).
The data access layer will have the function of checking the validity of the username and password.


I don’t think I need anything else on this page. So I will be in BLL. If you want to add some features that should appear in BLL, add.

+5
source share
3 answers

You should have something like this:

User interface calls BL.SaveUsernameAndPassword(string user, string pass);

BL.SaveUsernameAndPassword should check the lines and then call DAL.SaveUsernameAndPassword(string user, string pass);

DAL.SaveUsernameAndPassword should put these parameters in your SQL query and execute it with the assumption that the data is valid

+2
source

No, BLL verifies that the username and password are correct. DAL is for data access only.

+6
source

"Data Acess Layer " - . BLL , DAL ( ) , .

+4

All Articles