Hi Guys,
Is it possible to iterate over data from the last data in ASP.Net Core Mvc
I'm trying to show data from the last data in database. I mean is when data looping it will show all data on table from the last data.
for example is :
all the looping above is just retrun value 1,2,3 etc
I want is when the looping running it will get end result 3,2,1.
I use the query below
Select * From Anggota Order By Kode_Anggota Desc
@foreach (var Petugas in Model) {
}
or
@for (int i = 0; i < Model.Rows.Count; i++) {
}
Any help could be appriciate.