Exemplo n.º 1
0
        public static IEnumerable <Department> GetDepartmentList()
        {
            IEnumerable <Department> departments = EmsDAL.GetDepartmentList();

            return(departments);
        }
Exemplo n.º 2
0
        public static bool EmployeeDetails(Employee employee)
        {
            bool isFound = EmsDAL.EmployeeDetails(employee);

            return(isFound);
        }
Exemplo n.º 3
0
        public static bool UpdateDepartment(Department department)
        {
            bool isUpdated = EmsDAL.UpdateDepartment(department);

            return(isUpdated);
        }
Exemplo n.º 4
0
        public static bool DeleteDepartment(Department department)
        {
            bool isDeleted = EmsDAL.DeleteDepartment(department);

            return(isDeleted);
        }
Exemplo n.º 5
0
        public static bool DeleteEmployee(Employee employee)
        {
            bool isDeleted = EmsDAL.DeleteEmployee(employee);

            return(isDeleted);
        }
Exemplo n.º 6
0
        public static Department GetDepartmentById(int departmentId)
        {
            Department department = EmsDAL.GetDepartmentbyId(departmentId);

            return(department);
        }
Exemplo n.º 7
0
        public static Employee GetEmployeeById(int employeeId)
        {
            Employee employee = EmsDAL.GetEmployeeById(employeeId);

            return(employee);
        }
Exemplo n.º 8
0
        public static bool UpdateEmployee(Employee employee)
        {
            bool isUpdated = EmsDAL.UpdateEmployee(employee);

            return(isUpdated);
        }
Exemplo n.º 9
0
        public static IEnumerable <Employee> GetEmployeeList()
        {
            IEnumerable <Employee> employees = EmsDAL.GetEmployeeList();

            return(employees);
        }
Exemplo n.º 10
0
        public static bool AddEmployee(Employee emp)
        {
            bool isAdded = EmsDAL.AddEmployee(emp);

            return(isAdded);
        }
Exemplo n.º 11
0
        public static bool AddDepartment(Department dept)
        {
            bool isAdded = EmsDAL.AddDepartment(dept);

            return(isAdded);
        }