2021-02-18 11:06:02 +01:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.ApplicationModels;
|
|
|
|
|
|
using Umbraco.Cms.Web.Common.Filters;
|
2020-08-06 22:08:27 +10:00
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Web.Common.ApplicationModels
|
2020-08-06 22:08:27 +10:00
|
|
|
|
{
|
2020-11-27 13:35:22 +01:00
|
|
|
|
|
|
|
|
|
|
// TODO: This should just exist in the back office project
|
|
|
|
|
|
|
2020-08-06 22:08:27 +10:00
|
|
|
|
public class BackOfficeIdentityCultureConvention : IActionModelConvention
|
|
|
|
|
|
{
|
2021-02-15 18:50:16 +11:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
|
public void Apply(ActionModel action) => action.Filters.Add(new BackOfficeCultureFilter());
|
2020-08-06 22:08:27 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|