public DataTable getEmpByCid(int cid)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetEmpByCid(cid));
 }
 public bool employeeLogin(string mail, string pass)
 {
     objemp = new EMPLOYEETableAdapter();
     return(Convert.ToBoolean(objemp.EmployeeLogin(mail, pass)));
 }
 public DataTable getEid(string mail)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetEid(mail));
 }
 public DataTable getEidByName(string name)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetEidByName(name));
 }
 public bool updateNewEmployee(int cid, string mail, string pass, int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.UpdateNewEmployee(cid, mail, pass, id) > 0);
 }
 public int GetLastEmpId()
 {
     objemp = new EMPLOYEETableAdapter();
     return(Convert.ToInt32(objemp.GetLastEmployee()[0][0]));
 }
 public DataTable getName(int eid)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetName(eid));
 }
 public bool checkEmpById(int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(Convert.ToBoolean(objemp.CheckEmpById(id)));
 }
 public bool updateEmployeeDetails(string ename, string mail, string pass, string address, string adhaar, int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.UpdateEmployeeDetails(ename, mail, pass, address, adhaar, id) > 0);
 }
 public bool deleteEmployeeDetails(int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.DeleteEmployeeDetails(id) > 0);
 }
 public DataTable getEmployeeById(int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetEmployeeById(id));
 }
 public bool deleteEmployee(int cId)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.DeleteEmployee(cId) > 0);
 }
 public bool updateEmployee(string ename, string mail, string pass, int id)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.UpdateEmployee(ename, mail, pass, id) > 0);
 }
 public bool InsertEmployee(string ename, string mail, string pass, int cid, int EmployeeId)
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.InsertEmployee(ename, mail, pass, cid, EmployeeId) > 0);
 }
 public DataTable getEmployee()
 {
     objemp = new EMPLOYEETableAdapter();
     return(objemp.GetEmployee());
 }