0

Per Sitecore SXA documentation, in SXA custom controller, we have to override the GetModel() method and we call repository to get the model. I would like to create multiple Action Results in Sitecore SXA custom controller rendering. Can someone help me how to write multiple Action methods in a controller?

  • 1
    That doesn't sound like you are using SXA right. Why not use a Page List component with an item query listing the employees? Or a Search Result component with a scope query to filter employees? – Michael West Aug 7 at 2:22
  • Agree with Michael's comment. How are you trying to represent this on a page - is the html totally unique or could you make use of or clone an existing SXA component. – Jen Aug 7 at 7:02
  • @MichaelWest@Jen - I just gave some sample Action Results names. I have to call a third party service/db and then populate some Sitecore fields. – KRT Aug 7 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.