Beispiel #1
0
    /// <summary>
    /// 发所有加盟店
    /// </summary>
    /// <param name="oMModel"></param>
    /// <returns></returns>
    public string AddAllStoreMessageInfo(MessageModel oMModel, out int MessageId)
    {
        string ret = Config.Fail;

        MessageId = 0;
        try
        {
            ret = md.AddAllStoreMessageInfo(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.AddAllStoreMessageInfo()", ex);
            return(Config.ExceptionMsg);
        }
        return(ret);
    }