コード例 #1
0
ファイル: bn_Product.cs プロジェクト: tampham47/juddy.vn
        public Guid Create2(Nullable <System.Guid> userId, string name, Nullable <double> price, string description, int amount)
        {
            var productId = Guid.NewGuid();
            int re        = (int)db.pb_Product_Create2(
                productId,
                userId,
                name,
                price,
                description,
                bn_HumanCode.GetCode(),
                amount).Single();

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