hanyadikhetvan-dotnethf/HanyadikHetVan/Services/HanyadikHetVanJsonService.cs

24 lines
683 B
C#
Raw Normal View History

2021-05-03 15:56:38 +02:00
using HanyadikHetVan.DTO;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace HanyadikHetVan.Services
{
public class HanyadikHetVanJsonService
{
private readonly ILogger<HanyadikHetVanJsonService> _logger;
private IConfiguration _configuration;
public HanyadikHetVanJsonService(ILogger<HanyadikHetVanJsonService> logger, IConfiguration configuration)
{
_configuration = configuration;
_logger = logger;
}
public HanyadikHetVanDTO HanyadikHetVan()
{
return new HanyadikHetVanDTO(_configuration["HanyadikHetVan:StartDate"]);
}
}
}