2025-01-14 23:10:30 +01:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.Razor;
|
|
|
|
|
|
|
2025-02-20 00:23:13 +01:00
|
|
|
|
namespace PlanTempus.Application.Common
|
2025-01-14 23:10:30 +01:00
|
|
|
|
{
|
|
|
|
|
|
public class ComponentsViewLocationExpander : IViewLocationExpander
|
|
|
|
|
|
{
|
|
|
|
|
|
public void PopulateValues(ViewLocationExpanderContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations)
|
|
|
|
|
|
{
|
|
|
|
|
|
var componentLocations = new[]
|
|
|
|
|
|
{
|
|
|
|
|
|
"/{0}.cshtml/"
|
|
|
|
|
|
//,
|
|
|
|
|
|
//"/Components/{1}/"
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return componentLocations.Concat(viewLocations);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|