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); } }