public IEnumerable <Employees> Get() { EmployeesRules employeesRules = new EmployeesRules(); List <Employees> employeesList = employeesRules.GetEmployees(); return(employeesList); }
public List <Employees> Get(int id) { EmployeesRules employeesRules = new EmployeesRules(); List <Employees> employeesList = employeesRules.GetEmployees(); List <Employees> result = new List <Employees>(); Employees employed = employeesList.FirstOrDefault(x => x.id == id); result.Add(employed); return(result); }