Exemple #1
0
 private void CPDelProduct()
 {
     if (user.HasPolicy("Store.Product.Del"))
     {
         string productName        = postData["productName"];
         SqlStoredProcedures sqlSP = new SqlStoredProcedures();
         sqlSP.StoreDelProduct(productName);
     }
     else
     {
         throw new NoPermissionException();
     }
 }