public IActionResult RebootDemo([FromBody] Event eventParam)
        {
            //var _eventReturn = _actionService.Reboot(eventParam.TerminalId, GetUserId());

            ActionReturn _eventReturn = new ActionReturn();

            _eventReturn.Date     = DateTime.Now.ToString();
            _eventReturn.UserName = GetUserName();

            return(Ok(_eventReturn));
        }
        public IActionResult OpenDoorDemo([FromBody] Event eventParam)
        {
            ActionReturn _eventReturn = new ActionReturn();

            _eventReturn.EventType = "OpenDoor";
            _eventReturn.Status    = "OnLine";
            _eventReturn.Date      = DateTime.Now.ToString();
            _eventReturn.UserName  = GetUserName();

            return(Ok(_eventReturn));
        }
Beispiel #3
0
 ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionReturn action, XElement xAction)
 {
     return(action);
 }
 static public void Initialize(ActionReturn <string> selectResources)
 {
     _selectResources = selectResources;
 }
Beispiel #5
0
 static public void Initialize(ActionReturn <string, string> getResourceText)
 {
     _actionGetResourceText = getResourceText;
 }
Beispiel #6
0
 XElement IActionVisitor <XElement, XElement> .Visit(ActionReturn action, XElement arg)
 {
     return(arg);
 }