I have user that can be in few companies, in one he can be admin and in other user.
I want to make method that gets the companyName from the url route:
http://websiteAddress/{companyName}/{Controller}/...
With the registered userId and will return it's Role using this method:
Public eRole GetRole(string companyName, Guid userId)
{
Guid? companyId =Go to the complete details ...