public WebMsgModel(object msgObject, WEB_MSG_TYPE type) { MsgData = msgObject; MsgType = type; UniqueId = Guid.NewGuid().ToString(); }
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; }