Exemple #1
0
        public async Task <IActionResult> Dashboard()
        {
            var users = await _abpHplDb.ThongKeTheoThangUserAsync();

            var infos = await _abpHplDb.DashboardTrungThongTinHrmAsync();

            //var checkProcess = ServerStatus.ListProcesses();
            var checkProcess = ServerStatus.GetProcessAcm();

            var result = new[]
            {
                new {
                    ThongKeTheoThangUser = users,
                    TrungThongTinHrm     = infos,
                    ServerStatus         = checkProcess
                }
            };

            return(Ok(result));
        }