Purpose of BAL in 3 tier architecture
<p>I am a newbie for 3 tier architecture as it consists of UI,BAL and DAL layers.So i am writing all the database code in DAL and i have declaring the variables in BAL and i have calling the methods into the UI,but is this is the correct way to code??What is my BAL is doing then?what is the main purpose of business layer?Can anyone explain me,Thanks.</p>

<pre><code> //In my BAL



public class ProfileMasterBLL
{
    public int UserId { get; set; }
    public string FormFiledBy { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }

}
</code></pre>

<p>//In my UI</p>

<pre><code> ProfileMasterBLL pmBLL = new ProfileMasterBLL();
        pmBLL.FirstName = TextBox1.Text;
        pmBLL.LastName = TextBox2.Text;



//In my DAL 
</code></pre>

<p>method for insert() </p>

<p>then how can i call ProfileMasterBLL.insert() ?? as i have written in DAL.</p>
