예제 #1
0
        public List <Employee> GetEmployee()
        {
            EmployeeDbcontext employeeDB = new EmployeeDbcontext();

            return(employeeDB.Employees.ToList());
        }
예제 #2
0
        public List <Department> GetDepartment()
        {
            EmployeeDbcontext employeeDBContext = new EmployeeDbcontext();

            return(employeeDBContext.Departments.ToList());
        }