complete transition of more editors; fix user editor

This commit is contained in:
2021-01-10 17:11:00 +01:00
parent 9b6470655f
commit 7e8554b994
14 changed files with 121 additions and 153 deletions
@@ -1,4 +1,6 @@
using Raven.Client.Documents.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using zero.Core.Collections;
using zero.Core.Entities;
using zero.Core.Identity;
@@ -13,5 +15,17 @@ namespace zero.Web.Controllers
DefaultQuery = q => q.OrderByDescending(x => x.CreatedDate);
PreviewTransform = (item, model) => model.Icon = "fth-globe";
}
public IList<Culture> GetAllCultures()
{
return Collection.GetAllCultures();
}
public IList<Culture> GetSupportedCultures()
{
return Collection.GetAllCultures(Options.SupportedLanguages);
}
}
}