Guest User

Untitled

a guest
Aug 1st, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment