Try your search with a different keyword or use * as a wildcard.
@model DiscountModel
@if (Model.Id > 0)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "products-grid",
UrlRead = new DataUrl("ProductList", "Discount", new RouteValueDictionary { [nameof(Model.DiscountProductSearchModel.DiscountId)] = Model.DiscountProductSearchModel.DiscountId }),
UrlDelete = new DataUrl("ProductDelete", "Discount", new RouteValueDictionary { [nameof(Model.DiscountProductSearchModel.DiscountId)] = Model.DiscountProductSearchModel.DiscountId }),
BindColumnNameActionDelete = nameof(DiscountProductModel.ProductId),
Length = Model.DiscountProductSearchModel.PageSize,
LengthMenu = Model.DiscountProductSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(DiscountProductModel.ProductName))
{
Title = T("Admin.Promotions.Discounts.AppliedToProducts.Product").Text
},
new ColumnProperty(nameof(DiscountProductModel.ProductId))
{
Title = T("Admin.Common.View").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/"))
},
new ColumnProperty(nameof(DiscountProductModel.ProductId))
{
Title = T("Admin.Common.Delete").Text,
Width = "150",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
}
else
{
@T("Admin.Promotions.Discounts.AppliedToProducts.SaveBeforeEdit")
}