22 lines
740 B
C#
22 lines
740 B
C#
using CoreProfilerExample.Repository.Interfaces;
|
|
using CoreProfilerExample.Service.Extensions;
|
|
using CoreProfilerExample.Service.Interfaces;
|
|
using CoreProfilerExample.Service.Models.Dtos;
|
|
using CoreProfilerExample.Service.Models.ParameterDtos;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CoreProfilerExample.Service.Implements
|
|
{
|
|
public class WeatherService(IWeatherForecastRepository weatherForecast) : IWeatherService
|
|
{
|
|
public Task<GetWeatherForecastDto> GetWeatherForecastAsync(GetWeatherForecastParameterDto parameterDto)
|
|
{
|
|
return weatherForecast.GetAsync(parameterDto.ForecastDays).ToDtoAsync();
|
|
}
|
|
}
|
|
}
|