示例#1
0
 private void CPAddCategory()
 {
     if (user.HasPolicy("Store.Category.Add"))
     {
         string categoryName       = postData["categoryName"];
         SqlStoredProcedures sqlSP = new SqlStoredProcedures();
         sqlSP.StoreAddCategory(categoryName);
     }
     else
     {
         throw new NoPermissionException();
     }
 }