I have a list like this
List<NamazTimesModel> res = nt.Select();
In res I have data like this
[
{
"name": "fajr",
"salahTime": "05:23",
"namazTime": "05:23",
"date": "3/6/2017 12:00:00 AM",
"endTime": null
},
{
"name": "sunrise",
"salahTime": "07:01",
"namazTime": "07:01",
"date": "3/6/2017 12:00:00 AM",
"endTime": null
},
{
"name": "zuhr",
"salahTime": "12:33",
"namazTime": "12:33",
"date": "3/6/2017 12:00:00 AM",
"endTime": null
},
....
]
I am looping over the list and checking what is the current item. For example it is 'fajr' then I have to take the next item and get the 'salahTime' from there and set 'endTime' of fajr to be that.
Can I get some help?