// GET api/<controller> public IEnumerable <Employee> Get() { using (var lg = _logger.GetLoggingBlock()) { var client = new EmployeeServiceProxy(); return(client.Execute(c => c.GetEmployees())); } }
static void Main(string[] args) { var client = new EmployeeServiceProxy(); var employees = client.Execute(p => p.GetEmployees()); _logger.Debug("Yellow"); }
public EmployeeController() { _employeeServiceProxy = new EmployeeServiceProxy(); _employeeTaskServiceProxy = new EmployeeTaskServiceProxy(); }