Exemplo n.º 1
0
        public int RemoveCategory(PurOrderId orderId, ProductCategoryId categoryId)
        {
            SqlParameter outputParam = null;

            ExecuteNonQuery("dbo.PurLineRemoveCategory",
                            delegate(SqlCommand cmd)
            {
                SqlHelper.AddParamInputId(cmd, "@OrderId", orderId.Value);
                SqlHelper.AddParamInputId(cmd, "@CategoryId", categoryId.Value);
                outputParam = SqlHelper.AddParamOutputInt(cmd, "@LinesRemaining");
            });
            return((int)outputParam.Value);
        }