コード例 #1
0
ファイル: bn_HashTag.cs プロジェクト: tampham47/juddy.vn
        public Guid Create(Nullable <System.Guid> userId, Nullable <byte> type, string textName, string tagName, string iconPath, string description, string userTypes)
        {
            if (!IsExists(tagName))
            {
                var hashId = Guid.NewGuid();
                int re     = (int)db.pb_HashTag_Create(
                    hashId,
                    userId,
                    type,
                    textName,
                    tagName.Trim().ToLower(),
                    iconPath,
                    description,
                    userTypes).Single();

                if (re >= 0)
                {
                    return(hashId);
                }
                else
                {
                    return(Guid.Empty);
                }
            }
            else
            {
                return(Guid.Empty);
            }
        }