示例#1
0
 public WebMsgModel(object msgObject, WEB_MSG_TYPE type)
 {
     MsgData  = msgObject;
     MsgType  = type;
     UniqueId = Guid.NewGuid().ToString();
 }
示例#2
0
 public WebMsgModel(object msgObject, WEB_MSG_TYPE type, bool autoHide, bool popUp, bool closable) : this(msgObject, type)
 {
     IsAutoHide = autoHide;
     IsClosable = closable;
     IsPopUp    = popUp;
 }
        private void AddTempMsgs(Controller controller, WEB_MSG_TYPE type, object msg, bool autoHide = true, bool popUp = false, bool closable = true)
        {
            var seriaLizedMsg = JsonConvert.SerializeObject(new WebMsgModel(msg, type, autoHide, popUp, closable));

            controller.TempData[GetKey()] = seriaLizedMsg;
        }