コード例 #1
0
        public Guid Create(Nullable <System.Guid> userId, Nullable <System.Guid> productId, string imagePath)
        {
            var photoId = Guid.NewGuid();
            int re      = (int)db.pb_Photo_Create(
                photoId,
                userId,
                productId,
                imagePath).Single();

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