split service response to different list items
I have a service response mapped to a list component.
the list contains a 'mainItem' and 'alsoOpenItem'.
I want the response to map the main days to 'mainitem' and map the other days to 'alsoOpenItem'.
the way I want to distinguish between main days and other days is from the field 'NightName'. The main days have unique names. The i other days all have "Open" as there 'NightName'.
for example, other days - if 'NightName' is "Open" map to 'alsoOpenItem'.
main days - if 'NightName' is anything else, map to 'mainItem'
I want to map them to the same list, but to separate list items, so i can separate them by the 'NightName'.
Does this make sense and is it achievable?
I could use 2 separate database services with a where clause on the response but this feels like it would be a slower way of doing it.
Thanks guys.