public async Task <Result <ICollection <AffiliatesSummaryReportItemModel> > > GetAffiliatesSummaryReportItemsForMonths(int count = 3, bool include = true) { if (count > 12) { count = 12; } if (count < 3) { count = 3; } if (include) { count++; } DateTime lastMonthStartDay = DateTime.Now; lastMonthStartDay = new DateTime(lastMonthStartDay.Year, lastMonthStartDay.Month, 1); if (!include) { lastMonthStartDay = lastMonthStartDay.AddMonths(-1); } lastMonthStartDay = TimeZoneInfo.ConvertTime(lastMonthStartDay, TimeZoneHelper.PstTimeZoneInfo, TimeZoneInfo.Local); return((await _affiliateService.GetAffiliatesSummaryReportItemsForMonths(lastMonthStartDay, count)).ToList()); }