public List <Employee> GetEmployee() { EmployeeDbcontext employeeDB = new EmployeeDbcontext(); return(employeeDB.Employees.ToList()); }
public List <Department> GetDepartment() { EmployeeDbcontext employeeDBContext = new EmployeeDbcontext(); return(employeeDBContext.Departments.ToList()); }