ReportHistoryService.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IdentityModel.Tokens.Jwt;
  4. using System.Linq;
  5. using System.Security.Claims;
  6. using System.Text;
  7. using FMSAdmin.Data;
  8. using FMSAdmin.Helpers;
  9. using FMSAdmin.Entities;
  10. using Microsoft.EntityFrameworkCore;
  11. using Microsoft.Extensions.Logging;
  12. using Microsoft.Extensions.Options;
  13. using Microsoft.IdentityModel.Tokens;
  14. using FMSAdmin.Models;
  15. namespace FMSApp.Services {
  16. public class ReportHistoryService {
  17. private readonly ILogger<ReportHistoryService> _logger;
  18. private readonly FMSContext _context;
  19. private readonly AppSettings _appSettings;
  20. private readonly StorageHelper _storage;
  21. public ReportHistoryService(
  22. ILogger<ReportHistoryService> logger,
  23. FMSContext context,
  24. IOptions<AppSettings> appSettings,
  25. StorageHelper storage
  26. ) {
  27. _logger = logger;
  28. _context = context;
  29. _appSettings = appSettings.Value;
  30. _storage = storage;
  31. }
  32. public IQueryable<BemsReportHistory> GetAll() {
  33. var query = _context.BemsReportHistory;
  34. return query;
  35. }
  36. }
  37. }