public Employee Get(int id) { IGetEmployee readObject = new ReadEmployee(); return(readObject.GetEmployee(id)); }
public EmployeeController(Startup.DeleteByNameResolver deleteAccesor, IEmployeeReadOnlyRepository read, ICreate <Employee> create) { delete = new DeleteEmployee(deleteAccesor(DeletesEmail.Employee), read); this.create = new CreateEmployee(create, read); this.read = new ReadEmployee(read); }
public List <Employee> Get() { IGetEmployees readObject = new ReadEmployee(); return(readObject.GetAllEmployees()); }