Exemplo n.º 1
0
 public CancellationsModel(IRepository <BillingActivity> repository,
                           ICsvService csvService)
 {
     _repository = repository;
     _cancellationReportsDatesModel = new ReportsDatesModel(defaultRange.StartDate, (DateTime)defaultRange.EndDate !);
     _csvService = csvService;
 }
Exemplo n.º 2
0
    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());
    }