Пример #1
0
        public ActionResult UpdateConnectStep(UpdateConnectStep updateConnectStep)
        {
            var monitorConnectStepServices = ServiceLocator.Instance.GetService<IMonitorConnectStepServices>();
            monitorConnectStepServices.UpdateConnectStep(updateConnectStep);

            var result = monitorConnectStepServices.GetResult();
            return Json(result);
        }
Пример #2
0
        public ActionResult UpdateConnectStep()
        {
            var updateConnectStep = new UpdateConnectStep();
            updateConnectStep.ID = Guid.NewGuid();
            updateConnectStep.RestaurantId = Guid.Empty;

            updateConnectStep.SockCreateTime = DateTime.Now;
            updateConnectStep.SockSendTime = DateTime.Now;
            updateConnectStep.ConnectResult = 1;
            updateConnectStep.ConnectType = 1;
            updateConnectStep.IpAddress = "192.168.1.1";
            var monitorConnectStepServices = ServiceLocator.Instance.GetService<IMonitorConnectStepServices>();
            monitorConnectStepServices.UpdateConnectStep(updateConnectStep);

            var result = monitorConnectStepServices.GetResult();
            return Json(result);
        }