Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create different controllers and how to authenitcation/UnAuthentication a Generated controller #3

Open
ngnam opened this issue May 22, 2021 · 0 comments

Comments

@ngnam
Copy link

ngnam commented May 22, 2021

Tks your project,

This is my template, but i can't create different controllers.

namespace CodeGenerated
{
    /// <summary>
    /// This is the controller class for all the ###CONTROLLER_NAME### commands in the system
    /// </summary>
    [Authorize]
    public class ###CONTROLLER_NAME###CommandController : ApiControllerBase
    {

        //The command action methods will be inserted here by the source generator     
        
        ###Commands###
    }
}

MyProject has ControllerA, ControllerB, ControllerC, ... ControllerX every controller has many actions, how I can know actions of a controller?

If I follow this project, I always only have 2 controllers, commandController and queryController
But How to create different controllers?

2.How to authentition and UnAuthentication a GeneratedController?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant