public async Task<IActionResult> ProductAddPopupList(DataSourceRequest command, CustomerActionConditionModel.AddProductToConditionModel model) { var products = await _customerActionViewModelService.PrepareProductModel(model, command.Page, command.PageSize); var gridModel = new DataSourceResult(); gridModel.Data = products.products.ToList(); gridModel.Total = products.totalCount; return Json(gridModel); }