public IActionResult Index() { BayanihanLevelsModel model = Bayanihan(); return(View(model)); //return Json(new { level1 = 5, level2 = 25 }); }
private BayanihanLevelsModel Bayanihan() { BayanihanLevelsModel model = new BayanihanLevelsModel(); int[] level = new int[8]; level = getPerLevels(); model.Level1 = level[0]; model.Level2 = level[1]; model.Level3 = level[2]; model.Level4 = level[3]; model.Level5 = level[4]; model.Level6 = level[5]; model.Level7 = level[6]; model.Level8 = level[7]; return(model); }