阅读背景:

如何在不查找AspNetUserRoles表的情况下在WebAPI方法中获取用户角色?

来源:互联网 

I have a stored procedure that updates status. Depending on the role of the user the stored procedure has code that may or may not allow the status change. For this reason I need to pass a role name into a stored procedure. My role name is stored on the client in my javascript code but of course I need a second check on the server. Each user has only one of three roles and when requesting an update of status I can call one of three methods depending on the role that the client has. Here's what I tried.I have a stored procedure that updates status.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: