Get Value from Jagged Array to View Model

bilawalmuzaffarbilawalmuzaffar ✭✭USMember ✭✭

How could i get value "KLM" as showed in pic below from other class to my View Model Class

Answers

  • JohnHardmanJohnHardman mod GBUniversity mod
    edited June 2018

    @bilawalmuzaffar -

    What is the "other class"? Post the code for the "other class".
    What properties does your View Model need to expose to the View? I'm guessing that your View will have a page that shows the details of one Sector in one Itinerary?

  • bilawalmuzaffarbilawalmuzaffar ✭✭ USMember ✭✭
    edited June 2018

    I just want to get data from sector class to my view model class

  • bilawalmuzaffarbilawalmuzaffar ✭✭ USMember ✭✭

    My view model contains list of sectors in single itinerary

  • Amar_BaitAmar_Bait ✭✭✭✭✭ DZMember ✭✭✭✭✭

    What is the "other class"> @bilawalmuzaffar said:

    How could i get value "KLM" as showed in pic below from other class to my View Model Class

    As @JohnHardman said, what is the structure of "other class" ?

Sign In or Register to comment.