public virtual void AddAllowedGroup(int enviromentId, string groupId) { if (AllowedGroups.Count(x => x.EnviromentId == enviromentId && x.GroupId == groupId) == 0) { AllowedGroups.Add(new AllowedGroup() { ApplicationId = this.Id, EnviromentId = enviromentId, GroupId = groupId }); } }
protected internal virtual void LoadDefaultPermissions() { AllowedGroups.Add("server.default"); }