public void CreateReport1() { List1 = dataProvider.Report1(BeginDate1, EndDate1); Sum = List1.Sum(x => x.SOLUOT); int t = 0; foreach (ReportItem1 item in List1) { item.STT = ++t; item.TILE = (double)item.SOLUOT / Sum; } }
private void SumExecute(string parameter) { Result = new List <int> { List1.Sum() }; }