public GetDashboardResultDto Execute(GetDashboardDto dto) { return(new GetDashboardResultDto { Object = new Dashboard { ExpenseReport = getAverageExpenseReport.Execute(new GetAverageExpenseReportDto { }).Object, OnlineUsers = getOnlineUsersReport.Execute(new GetOnlineUsersReportDto { }).Object, Parties = getPartiesLocation.Execute(new GetPartiesLocationDto { }).Object, UsersInformation = getUserInformationReport.Execute(new GetUserInformationReportDto { }).Object }, Status = true }); }
public ActionResult <GetDashboardResultDto> GetDashboard([FromQuery] GetDashboardDto dto) { return(getDashboard.Execute(dto)); }