Base solution for your next web application
Open Closed

Add default role #260


User avatar
0
daniel hussy created

Hi,

I read the documentation about module zero and i tried to make this in my web module:

Configuration.Modules.Zero().RoleManagement.StaticRoles.Add(new StaticRoleDefinition("Admin", MultiTenancySides.Tenant));

...but inside Configuration.Modules there isn't "Zero()" method. What am I doing wrong? Pls. help!


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    It's extension method. Add this to your code:

    using Abp.Zero.Configuration;
    

    Have a nice day.