Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Unity Interception - Custom Interception Behaviour
  2. var companies = methodReturn.ReturnValue as IEnumerable<ICompanyId>;
  3. List<string> filter = CompaniesVisibleToUser();
  4.  
  5. methodReturn.ReturnValue = companies.Where(company =>    
  6.     filter.Contains(company.CompanyId)).ToList();
  7.        
  8. public IList<ApplicationLayerDtos.EmployeeOverviewDto> GetEmployeesOverview()
  9.     {
  10.         return _appraisalService.GetEmployeesOverview();
  11.     }