示例#1
0
 public ActionResult index()
 {
     TemperatureRecordDAL dal = new TemperatureRecordDAL();
     try
     {
         List<TemperatureRecordModel> list = dal.GetIndexList(" 1=1");
         if (list != null)
             ViewBag.list = list;
     }
     catch (Exception ex)
     {
         Log.Default.Error(ex);
     }
     return View();
 }