private async Task queryBarReportByYear() { string salesYear = "2013"; object[] yearMonth = new object[12]; object[] resultMonth = new object[12]; //yearMonth[0] = subCategoryId; for (int month = 0; month < 12; month++) { yearMonth[month] = salesYear + string.Format("{0:00}", month + 1); resultMonth[month] = string.Format("{0:00}", month + 1) + "/" + salesYear; } var master = new ProductCategorySalesReport(); productCategorySalesReport = await _reportService.RetrieveProductCategorySalesReportAsync(master, yearMonth); ConvertDataForReport(productCategorySalesReport, resultMonth); }