Proper place for "Request" classes #34
              
                Unanswered
              
          
                  
                    
                      BohdanTron
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In the solution, CustomerOrderRequest and RegisterCustomerRequest classes are responsible for receiving data from the outside and passing it to the Application level. However, CustomerOrderRequest is placed at the API level, while RegisterCustomerRequest is at the Application level. So, what is the best place for such classes, and why is it better not to use Commands directly as input API parameters?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions