Exemple #1
0
    /// <summary>
    ///  添加消息信息
    /// </summary>
    /// <param name="oMModel"></param>
    /// <param name="MessageId"></param>
    /// <returns></returns>
    public string AddMessageInfo(MessageModel oMModel, out int MessageId)
    {
        string ret = Config.Fail;

        MessageId = 0;
        try
        {
            ret = md.AddMessageInfo(oMModel);
            int  Id   = 0;
            bool flag = Int32.TryParse(ret, out Id);
            if (flag && Id > 0)
            {
                MessageId = Id;
                return(Config.Success);
            }
        }
        catch (Exception ex)
        {
            WriteLog.WriteExceptionLog("MessageBLL.AddMessageInfo()", ex);
            return(Config.ExceptionMsg);
        }
        return(ret);
    }