protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         List <Employ> bList = EmployBLL.GetEmploysBLL();
         GridView1.DataSource = bList.ToList();
         GridView1.DataBind();
     }
     catch (Exception ex)
     {
         lblerror.Text = ex.Message;
     }
 }
Example #2
0
        // GET: Employ
        public ActionResult Index()
        {
            List <Employ> eList = EmployBLL.GetEmploysBLL();

            return(View(eList));
        }