public static List<BloodSugarData> bsDatas = new List<BloodSugarData> { new BloodSugarData(0, "36703245432", date1, "morning", 4), new BloodSugarData(1, "36405555555", date2, "night", 12), };
public IActionResult BSMeasurePageList() { return View(bsDatas); }
@model List<BloodSugarData><table> <tr> <th> Id </th> <th> Phone </th> <th> Date </th> <th> Time of day </th> <th> Blood sugar (mg/dl)</th> </tr>@{ for (int i = 0; i < Model.Count; i++) { var item = Model[i]; <tr> <td>@item.Id </td> <td>@item.userPhone </td> <td>@item.measureDate </td> <td>@item.timeOfDay </td> <td>@item.mgBloodSugar </td> </tr></table> }}
public ActionResult BSDiagram() { return View(); }