ComplianceServer/code/Hg.Core.WebApi/Controllers/StatisticsController.cs

21 lines
631 B
C#

using System.ComponentModel.DataAnnotations;
namespace Hg.Core.WebApi.Controllers
{
[ApiSignatureFilterForbid]
public class StatisticsController : BaseController
{
private readonly IStatisticsDomain _statisticsDomain;
public StatisticsController(IStatisticsDomain statisticsDomain)
{
_statisticsDomain = statisticsDomain;
}
[HttpGet("MonthOutbound")]
public async Task<dynamic> GetMonthOutboundData([Required] string year, [Required] string month)
{
return await _statisticsDomain.GetMonthOutboundData(year, month);
}
}
}