29 lines
792 B
C#
29 lines
792 B
C#
using Complex.Application.Services.Dashboard;
|
|
using Complex.Common.Dto;
|
|
using Complex.EndPoint.Utility;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Complex.EndPoint.Controllers
|
|
{
|
|
[ApiController]
|
|
[ApiVersion("1")]
|
|
[Route("api/v{version:apiVersion}/[controller]/[action]")]
|
|
[Authorize]
|
|
public class DashboardController : Controller
|
|
{
|
|
private readonly IDashboardService _dashboardService;
|
|
|
|
public DashboardController(IDashboardService dashboardService)
|
|
{
|
|
_dashboardService = dashboardService;
|
|
}
|
|
|
|
[HttpGet]
|
|
public ResultDto<DashboardSummaryDto> ManagerSummary(Guid complexId)
|
|
{
|
|
return _dashboardService.GetManagerSummary(complexId);
|
|
}
|
|
}
|
|
}
|