예제 #1
0
 private void CPChangeProductEmployeePrice()
 {
     if (user.HasPolicy("Store.Product.Update"))
     {
         string              productName   = postData["productName"];
         decimal             employeePrice = Convert.ToDecimal(postData["employeePrice"]);
         SqlStoredProcedures sqlSP         = new SqlStoredProcedures();
         sqlSP.StoreChangeProductEmployeePrice(productName, employeePrice);
     }
     else
     {
         throw new NoPermissionException();
     }
 }