Пример #1
0
        // GET: Worker
        public ActionResult Index()
        {
            ViewBag.Devices    = DeviceModel.GetAllDevices();
            ViewBag.Commands   = CommandModel.GetAllCommands();
            ViewBag.Actions    = ActionModel.GetAllActions();
            ViewBag.Jobs       = JobModel.GetAllJobs();
            ViewBag.ReturnLogs = ReturnLogModel.GetAllReturnLogs();

            return(View());
        }
 private void loadDevices()
 {
     this.deviceDataView.DataSource = model.GetAllDevices();
 }