public IActionResult ListLawUnitGroup(IDataTablesRequest request, CaseSelectionProtokoLUGrouplFilterVM model) { var data = service.LawUnitReportByGroup(userContext.CourtId, model.GroupId, model.LawUnitID); Dictionary <string, object> addParams = new Dictionary <string, object>(); addParams.Add("total", data.Sum(x => x.CaseCount)); return(request.GetResponse(data, null, addParams)); }