0

I have a MVC5 application, which uses the n-layer pattern. On my website I have a search engine which allows the user to search for companies matching the query string. The list of retreived companies is filtered depending on the role of the user. What is the best way to manage this in data access? I mean how can I get the user role in my data access? Do you think that is a bad idea to reference the current user in the data access layer? Thanks in advance.

EluciusFTW
  • 2,565
  • 6
  • 42
  • 59

0 Answers0