public GetGrid gridData()
        {
            List <Grid> data = new List <Grid>();

            data.Add(new Grid()
            {
                No = "1", Nama = "Naufal", NIM = "22424"
            });
            data.Add(new Grid()
            {
                No = "2", Nama = "Dian", NIM = "98989"
            });

            GetGrid get = new GetGrid
            {
                data  = data,
                Total = data.Count
            };

            return(get);
        }
Ejemplo n.º 2
0
        public GetGrid gridData()
        {
            List <Grid> data = new List <Grid>();

            data.Add(new Grid()
            {
                No = "1", Nama = "Maisya", NIM = "123"
            });
            data.Add(new Grid()
            {
                No = "2", Nama = "Ayu", NIM = "124"
            });

            GetGrid get = new GetGrid
            {
                data  = data,
                Total = data.Count
            };

            return(get);
        }