コード例 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string       username = txtusername.Text;
            string       password = txtpassword.Text;
            IEmployeeBO  obj      = EmployeeFBO.CheckEmployee(username, password);
            IEmployeeBLL obj1     = EmployeeFaBLL.createnew();

            obj1.RegisterEmp(obj);
        }
コード例 #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string       username = txtusername.Text;
            string       password = txtpassword.Text;
            IEmployeeBO  objBO    = EmployeeFBO.CheckEmployee(username, password);
            IEmployeeBLL objBLL   = EmployeeFaBLL.createnew();
            int          check    = objBLL.CheckEmp(objBO);

            if (check == 1)
            {
                Label3.Text = "Successfully loggedIn";
            }
            else
            {
                Label3.Text = "Login notSuccessfull";
            }
        }