public void OnGet(CustomerDiscountSearchModel searchModel) { var products = _productApplication.GetProducts(); Products = new SelectList(products, "Id", "Name"); CustomerDiscounts = _customerDiscountApplication.Search(searchModel); }
public void OnGet(CustomerDiscountSearch search) { Products = new SelectList(_productApplication.GetProducts(), "Id", "Name"); CustomerDiscounts = _customerDiscountApplication.Search(search); }