Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7546423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:11:39+00:00 2026-05-30T09:11:39+00:00

Many classes and methods within my ASP.NET MVC 3 application are decorated with the

  • 0

Many classes and methods within my ASP.NET MVC 3 application are decorated with the [Authorize] attribute, like this:

[Authorize(Roles = "assignment_edit, assignment_view")] 
public class AssignmentController : Controller {

or this:

[HttpPost]
[Authorize(Roles = "assignment_edit")]
public ActionResult Create(AssignmentViewModel assignment)
{

I’d like to find a way to document what classes and methods are limited to particular roles and users, and produce a report grouped by role or class indicating who is authorized to do what. This would make it easier to know what role to grant to a user if they need to perform certain actions.

I’ve considered using C#’s built in documentation and using a tag like remarks to store this information, then outputting it into an xml file, but it seems clunky — I’d need to re-type in information which could get out of synch with the attribute, and post-process the XML document to parse the information and present it in a readable form.

I’m curious whether anyone else has had a similar need and whether any tools or processes exist for tackling this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:11:40+00:00Added an answer on May 30, 2026 at 9:11 am

    There are several tools available,
    For example,

    To add documentation to your method or class , you can use “GhostDoc“

    To Create documentation file out of above XML Documentations, you can use “VSDocMan“

    For free products,

    You can use SandCastle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: Migrating an application from ball of mud to MVC. Many classes contain HTML
I have a business model with many classes in, some logical entities within this
There are many classes having this provider suffix. (Data,membership,modelmetadata,...). When should be a class
Has anyone ever heard of overriding too many classes in Java? Perhaps this issue
Per version (1.0, 1.1, 2.0, 3.0, 3.5), how many classes are in the .NET
Recently I've read, and implemented 80% of examples from Pro ASP.NET MVC Framework ,
I've built many Enum classes with int getID() and MyEnum withID(int) methods that allow
Task : I want to use some methods for many classes. Methods are same,
Many classes in Cocoa/Cocoa Touch have the NS prefix. What does it mean?
Is there a general rule of thumb as to how many classes, interfaces etc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.