예제 #1
0
 //public Employee()
 //{
 //    ID = "";
 //    Name = "";
 //    MobileNo = 1111111111;
 //    Department = new List<SelectListItem>();
 //    Department.Add(new SelectListItem() { Text = "Dept", Value = "ONM" });
 //    Company = new List<SelectListItem>();
 //    Company.Add(new SelectListItem() { Text = "Company1", Value = "BYPL" });
 //    ComplaintCenter = 1;
 //}
 public DataTable Emp_Dept_data()
 {
     try
     {
         Employee_registration reg = new Employee_registration();
         DataTable dt = reg.Emp_dept_data();
         return dt;
     }
     catch (OleDbException e)
     { throw e; }
 }
예제 #2
0
        public DataTable Login(LoginModel Login)
        {
            try
            {

                Employee_registration reg = new Employee_registration();
                DataTable dt = reg.Emp_login_data(Login);
                return dt;
            }
            catch (OleDbException e)
            {
                throw e;
            }
        }