void Fill(List <PermissionModel> container, List <Users_Permission> permissions, int level)
 {
     foreach (var permission in permissions)
     {
         container.Add(PermissionModel.Create(permission, level));
         Fill(container, permission.Children, level + 1);
     }
 }
        public static PermissionModel Create(Users_Permission entity, int level = 0)
        {
            PermissionModel ret = new PermissionModel()
            {
                Id = entity.Id, Name = entity.Name
            };

            for (int i = 0; i < level; i++)
            {
                ret.Name = " " + ret.Name;
            }

            return(ret);
        }