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 = "categories-grid",
UrlRead = new DataUrl("CategoryList", "Discount", new RouteValueDictionary { [nameof(Model.DiscountCategorySearchModel.DiscountId)] = Model.DiscountCategorySearchModel.DiscountId }),
UrlDelete = new DataUrl("CategoryDelete", "Discount", new RouteValueDictionary { [nameof(Model.DiscountCategorySearchModel.DiscountId)] = Model.DiscountCategorySearchModel.DiscountId }),
BindColumnNameActionDelete = nameof(DiscountCategoryModel.CategoryId),
Length = Model.DiscountCategorySearchModel.PageSize,
LengthMenu = Model.DiscountCategorySearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(DiscountCategoryModel.CategoryName))
{
Title = T("Admin.Promotions.Discounts.AppliedToCategories.Category").Text
},
new ColumnProperty(nameof(DiscountCategoryModel.CategoryId))
{
Title = T("Admin.Common.View").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonView(new DataUrl("~/Admin/Category/Edit/"))
},
new ColumnProperty(nameof(DiscountCategoryModel.CategoryId))
{
Title = T("Admin.Common.Delete").Text,
Width = "150",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
}
else
{
@T("Admin.Promotions.Discounts.AppliedToCategories.SaveBeforeEdit")
}