@if (ViewContext.HttpContext.User.IsInRole("Your role")) { // Do something here }
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.