Is there a way to re-render a partial from a PageModel?
@foreach (var group in Model.Groups)
{
<partial name="_OverviewAction" model="@group" />
}
The following function should replace the partial with a new one.
But this won't work because the Partial() only accepts a model from the same type as the PageModel.
public IActionResult OnPostDeleteGroup(string id)
{
var group = GroupService.GetGroup(id);
/*... some code ...*/
return Partial("_OverviewAction", group);
}