Calling a page in another ASP.NET-core

0

Good morning, I have a page of schedules, which works perfectly, however in this page edit, I need to call the page Schedule Item Index, I'm trying this way on the EDIT page:

<div class="row">
    <div class="col-md-offset-2 col-md-10" id="replacetarget">
        @await Component.InvokeAsync("HorarioItem/Index", new { id = Model.Horarios.Id});
    </div>
</div>

But it returns me the following error:

  

InvalidOperationException: A view component named 'ScheduleItem / Index' could not be found. The view component must be a non-abstract class, not contain any generic parameters, and either be decorated with 'ViewComponentAttribute' or have a ending class name with the 'ViewComponent' suffix. The view component must not be decorated with 'NonViewComponentAttribute'.

How can I proceed? Thank you.

    
asked by anonymous 30.05.2018 / 14:57

0 answers