public IActionResult DataTablesExample() { OrganisasiOrmawaVM vmod = new OrganisasiOrmawaVM(); var dataProviderUrl = Url.Action("DataTablesExampleDataProvider"); var viewModel = DataTablesHelper.DataTableVm <OrganisasiOrmawaRow>("dataTable", dataProviderUrl); viewModel.ShowFilterInput = true; viewModel.PageLength = 10; vmod.DataTableConfigVm = viewModel; return(View(vmod)); }
public IActionResult Detail(int id) { //var dataProviderUrl = Url.Action("DataTablesDaftarAnggota", new { id }); // var viewModel = DataTablesHelper.DataTableVm<DaftarAnggotaOrmawaRow>("dataTable", dataProviderUrl); // viewModel.ShowFilterInput = true; // viewModel.PageLength = 10; //vmod.DataTableConfigVm = viewModel; OrganisasiOrmawaVM vm = new OrganisasiOrmawaVM(); vm.GetDetails = _repo.GetOrganisasiDetails(id); return(View(vm)); }