@using CanteenContracts.BindingModels; @model ReportBindingModel @{ ViewBag.Title = "Report"; }

Отчеты

@using (Html.BeginForm("Report", "Home", FormMethod.Post)) {

Pdf

@Html.LabelFor(m => m.DateBefore, "От") @Html.TextBoxFor(m => m.DateBefore, new { type = "date", @class = "form-control" })
@Html.LabelFor(m => m.DateAfter, "До") @Html.TextBoxFor(m => m.DateAfter, new { type = "date", @class = "form-control" })

Word, Excel

@Html.LabelFor(m => m.ProductId, "Выбранные продукты") @Html.DropDownListFor(m => m.ProductId, new SelectList(ViewBag.ProductList, "Id", "ProductName"), new { @class = "form-control", multiple = "multiple" })
}