@model IEnumerable<Order>
@if (TempData["SuccesMessage"] != null)
{
<div class="alert alert-success">
<strong> Succes! </strong>@TempData["SuccesMessage"]
</div>
}
<div class="container p-4 border">
<div class="row pb-2">
<h1 class="text-primary">All Orders</h1>
</div>
<div class="col text-end pt-1">
<a asp-controller="RabbitMQ" asp-action="SendToRabbit" class="btn btn-primary"> Send all </a>
</div>
Is there a way to route the data in the IEnumerable Order to another Controller, using the send all button? or any other way?