public CancellationsModel(IRepository <BillingActivity> repository, ICsvService csvService) { _repository = repository; _cancellationReportsDatesModel = new ReportsDatesModel(defaultRange.StartDate, (DateTime)defaultRange.EndDate !); _csvService = csvService; }
public async Task <IActionResult> OnGetAsync() { SignupReportsDatesModel = new ReportsDatesModel(defaultRange.StartDate, (DateTime)defaultRange.EndDate !); DateTimeRange dates = new DateTimeRange((DateTime)SignupReportsDatesModel.StartDate !, SignupReportsDatesModel.EndDate); var spec = new BillingActivitiesByDateTimeRangeAndSubscribedVerbSpec(dates); SubscribedBillingActivities = await _repository.ListAsync(spec); return(Page()); }