Exemplo n.º 1
0
        public void Insert(Guid ApplicationId, Guid RoleId, string RoleName, string LoweredRoleName, string Description)
        {
            AspnetRole item = new AspnetRole();

            item.ApplicationId = ApplicationId;

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.LoweredRoleName = LoweredRoleName;

            item.Description = Description;


            item.Save(UserName);
        }
Exemplo n.º 2
0
        public void Update(Guid ApplicationId, Guid RoleId, string RoleName, string LoweredRoleName, string Description)
        {
            AspnetRole item = new AspnetRole();

            item.MarkOld();
            item.IsLoaded = true;

            item.ApplicationId = ApplicationId;

            item.RoleId = RoleId;

            item.RoleName = RoleName;

            item.LoweredRoleName = LoweredRoleName;

            item.Description = Description;

            item.Save(UserName);
        }