using Microsoft.AspNetCore.Mvc.Razor;

namespace PlanTempus.Application.Common
{
    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);
        }
    }
}
