Creating the constants
The code snippets in this tutorial use a set of constants. To include them in your project perform the following:
- From the context menu of the ProductsModule, click Add » Class.
- Name the class file ProductsConstants.cs and click Add.
- Open the file ProductsConstants.cs.
-
Modify the ProductsConstant class definition in the following way:
public static class ProductsConstants
{
public static class Security
{
public const string PermissionSetName = "Products";
public const string View = "ViewProducts";
public const string Modify = "ModifyProducts";
public const string Create = "CreateProducts";
public const string Delete = "DeleteProducts";
public const string ChangeOwner = "ChangeProductsOwner";
public const string ChangePermissions = "ChangeProductsPermissions";
}
}