public async Task <IEnumerable <Employee> > GetEmployeeByNameAsync(string empName) { var spec = new EmployeeWithDepartmentSpecification(empName); return(await GetAsync(spec)); }
public async Task <IEnumerable <Employee> > GetEmployeeListAsync() { var spec = new EmployeeWithDepartmentSpecification(); return(await GetAsync(spec)); }
public async Task <IEnumerable <Employee> > GetEmployeeByDepartmentAsync(int deptId) { var spec = new EmployeeWithDepartmentSpecification(deptId); return(await GetAsync(spec)); }