Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Business entity layer.
***************
public class BEL
{
#region variable

private string firstname;

#endregion

public string Firstname
{
get { return firstname; }
set { firstname = value; }
}
}

presentation layer:
**************

protected void save_click(object sender, EventArgs e)
{
string output = string.Empty;

BEL ObjUserBEL = new BEL();
ObjUserBEL.Firstname = txtfirstname.Text.ToString().Trim();
BLL ObjUserBLL = new BLL();
output = ObjUserBLL.insertuserdetails(ObjUserBEL);

}
and i have one more layer DAL.cs (Data Access Layer).

here i got doubt that.
Instead of giving like below.
BLL ObjUserBLL = new BLL();
output = ObjUserBLL.insertuserdetails(ObjUserBEL);

i can give directly to DAL.cs layer right? like below

DAL objUserDAL = new DAL();
output=objUserDAL.insertuserdetails(ObjUserBEL);

when i browse, i got information like it is for validation. i do not understand and not find any validation.

so, what is the need of BAL (Business access Layer) ? without BAL also, it calls DAL layer and do all function.
kindly clarify me..
Posted
Comments
Ankur\m/ 19-Mar-14 3:10am    
Some Google can go a long way!

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900