public ActionResult Desktop() { var logDal = new LogDal(); var model = new HomeModelDesktop() { UserCount = 0, DeviceCount = 0, DeviceCountOfPowerFlag = 0, Log = logDal.QueryNearN(10), DeviceCountOfOnLine = 0, }; return(View(model)); }