CodeGarten.Data.Access.RoleManager.Delete C# (CSharp) Method

Delete() public method

public Delete ( long structureId, string containerPrototype, string workspaceType, string roleType ) : void
structureId long
containerPrototype string
workspaceType string
roleType string
return void
        public void Delete(long structureId, string containerPrototype, string workspaceType, string roleType)
        {
            var role = Get(structureId, containerPrototype, workspaceType, roleType);

            _dbManager.DbContext.Roles.Remove(role);

            _dbManager.DbContext.SaveChanges();
        }