Exemple #1
0
 private void CPChangeProductPrice()
 {
     if (user.HasPolicy("Store.Product.Update"))
     {
         string              productName  = postData["productName"];
         decimal             productPrice = Convert.ToDecimal(postData["productPrice"]);
         SqlStoredProcedures sqlSP        = new SqlStoredProcedures();
         sqlSP.StoreChangeProductPrice(productName, productPrice);
     }
     else
     {
         throw new NoPermissionException();
     }
 }