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)); }
ActionBase IActionVisitor <XElement, ActionBase> .Visit(ActionReturn action, XElement xAction) { return(action); }
static public void Initialize(ActionReturn <string> selectResources) { _selectResources = selectResources; }
static public void Initialize(ActionReturn <string, string> getResourceText) { _actionGetResourceText = getResourceText; }
XElement IActionVisitor <XElement, XElement> .Visit(ActionReturn action, XElement arg) { return(arg); }