1
0

加入專案檔案。

This commit is contained in:
2024-03-25 16:13:35 +08:00
parent c16cecfc42
commit 739e92cee8
26 changed files with 459 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
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();
}
}
}