public int UpdateAmount(Guid productId, int amount) { var re = (int)db.pb_Product_UpdateAmount( productId, amount).Single(); return(re); }