public int getsetAttendance(int EId, DateTime d) { ed = new EmpDalLayer(); int j = ed.getsetAttendance(EId, d); return(j); }
public decimal getSalaryPerHour(int Eid) { ed = new EmpDalLayer(); decimal sa = ed.getSalaryPerHour(Eid); return(sa); }
public List<EmpEntity.Employee> getEmp(string Name) { ed = new EmpDalLayer(); List<Employee> eListB = new List<Employee>(); return eListB= ed.getEmp(Name); // throw new NotImplementedException(); }
public bool deleteEmp(int id) { ed = new EmpDalLayer(); ed.deleteEmp(id); return true; // throw new NotImplementedException(); }
public Employee getEmpOnId(int id) { ed = new EmpDalLayer(); Employee ew = ed.getEmpOnId(id); return(ew); }
public bool updateEmp(EmpEntity.Employee e) { ed = new EmpDalLayer(); ed.updateEmp(e); return(true); //throw new NotImplementedException(); }
public bool deleteEmp(int id) { ed = new EmpDalLayer(); ed.deleteEmp(id); return(true); // throw new NotImplementedException(); }
public int getSalaryForDays(int Eid, int month) { ed = new EmpDalLayer(); //int i = ed.getSalaryForDays(Eid,month); int i = ed.getSalaryForDays(Eid, month); return i; }
public List <EmpEntity.Employee> getEmp(string Name) { ed = new EmpDalLayer(); List <Employee> eListB = new List <Employee>(); return(eListB = ed.getEmp(Name)); // throw new NotImplementedException(); }
public int getSalaryForDays(int Eid, int month) { ed = new EmpDalLayer(); //int i = ed.getSalaryForDays(Eid,month); int i = ed.getSalaryForDays(Eid, month); return(i); }
public int getEmpLeave(int id) { ed = new EmpDalLayer(); List<EmpLeave> el = new List<EmpLeave>(); el = ed.getLeavesTaken(id); int leaves = 0; foreach (var item in el) { DateTime d1 = item.FromDate; DateTime d2 = item.ToDate; TimeSpan d3 = d2 - d1; leaves += d3.Days; } return leaves; }
public int getEmpLeave(int id) { ed = new EmpDalLayer(); List <EmpLeave> el = new List <EmpLeave>(); el = ed.getLeavesTaken(id); int leaves = 0; foreach (var item in el) { DateTime d1 = item.FromDate; DateTime d2 = item.ToDate; TimeSpan d3 = d2 - d1; leaves += d3.Days; } return(leaves); }
public bool insertEmpLeave(EmpLeave ee) { ed = new EmpDalLayer(); ed.insertLeave(ee); return true; }
public Employee getEmpOnId(int id) { ed = new EmpDalLayer(); Employee ew = ed.getEmpOnId(id); return ew; }
public bool insertEmpLeave(EmpLeave ee) { ed = new EmpDalLayer(); ed.insertLeave(ee); return(true); }
public bool updateEmp(EmpEntity.Employee e) { ed = new EmpDalLayer(); ed.updateEmp(e); return true; //throw new NotImplementedException(); }
public bool insertNewEmployee(EmpEntity.Employee e) { ed = new EmpDalLayer(); ed.insertNewEmployee(e); return true; }
public decimal getSalaryPerHour(int Eid) { ed = new EmpDalLayer(); decimal sa=ed.getSalaryPerHour(Eid); return sa; }
public int getsetAttendance(int EId, DateTime d) { ed = new EmpDalLayer(); int j=ed.getsetAttendance(EId, d); return j; }
public bool insertNewEmployee(EmpEntity.Employee e) { ed = new EmpDalLayer(); ed.insertNewEmployee(e); return(true); }