<% foreach (var item in Model) { %> <tr> <td> <%: Html.DisplayFor(modelItem => item.Measure) %> </td> <td> <%: Html.DisplayFor(modelItem => item.MeasureVal) %> </td> <% } %> [HttpGet] public ViewResult Doctor(int LoginUser) { EPatient.Models.EPatientEntitiesContext_Measurement dbMeasurement = new EPatient.Models.EPatientEntitiesContext_Measurement(); var userlist = (from U in db.E_Users where U.DoctorID == LoginUser select U.UserID).ToList(); IEnumerable<cls_Measurement> emplist = (from M in dbMeasurement.E_Measures where M.Status == 1 select new cls_Measurement { Measure = M.Measure, MeasureVal = M.MeasureVal, InsulinType = M.InsulinType, Insulin_amount = M.Insulin_amount, Weight = M.Weight, Height = M.Height, Min_pressure = M.Min_pressure, Max_pressure = M.Max_pressure, Hypoglycemia = M.Hypoglycemia, Test_value = M.Test_value, Comment = M.Comment }).AsQueryable(); return View(emplist); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)