Beispiel #1
0
        public async Task <IActionResult> LogonCostCenter(DataSourceRequest command,
                                                          LogonCostCenterListModel model)
        {
            model.ClientId = (int)_workContext.CurrentCustomer.ClientId;

            var(LogoncostcenterListModel, totalCount) = await _setupDataViewModelService.PrepareLogonCostCenterListModel(model, command.Page, command.PageSize);

            var gridModel = new DataSourceResult
            {
                Data  = LogoncostcenterListModel.ToList(),
                Total = totalCount
            };

            return(Json(gridModel));
        }