예제 #1
0
        public static IEnumerable <Department> GetDepartmentList()
        {
            IEnumerable <Department> departments = EmsDAL.GetDepartmentList();

            return(departments);
        }
예제 #2
0
        public static bool EmployeeDetails(Employee employee)
        {
            bool isFound = EmsDAL.EmployeeDetails(employee);

            return(isFound);
        }
예제 #3
0
        public static bool UpdateDepartment(Department department)
        {
            bool isUpdated = EmsDAL.UpdateDepartment(department);

            return(isUpdated);
        }
예제 #4
0
        public static bool DeleteDepartment(Department department)
        {
            bool isDeleted = EmsDAL.DeleteDepartment(department);

            return(isDeleted);
        }
예제 #5
0
        public static bool DeleteEmployee(Employee employee)
        {
            bool isDeleted = EmsDAL.DeleteEmployee(employee);

            return(isDeleted);
        }
예제 #6
0
        public static Department GetDepartmentById(int departmentId)
        {
            Department department = EmsDAL.GetDepartmentbyId(departmentId);

            return(department);
        }
예제 #7
0
        public static Employee GetEmployeeById(int employeeId)
        {
            Employee employee = EmsDAL.GetEmployeeById(employeeId);

            return(employee);
        }
예제 #8
0
        public static bool UpdateEmployee(Employee employee)
        {
            bool isUpdated = EmsDAL.UpdateEmployee(employee);

            return(isUpdated);
        }
예제 #9
0
        public static IEnumerable <Employee> GetEmployeeList()
        {
            IEnumerable <Employee> employees = EmsDAL.GetEmployeeList();

            return(employees);
        }
예제 #10
0
        public static bool AddEmployee(Employee emp)
        {
            bool isAdded = EmsDAL.AddEmployee(emp);

            return(isAdded);
        }
예제 #11
0
        public static bool AddDepartment(Department dept)
        {
            bool isAdded = EmsDAL.AddDepartment(dept);

            return(isAdded);
        }