예제 #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));
        }
예제 #2
0
        public async Task <IActionResult> DashboardTrungThongTinHrm()
        {
            var result = await _abpHplDb.DashboardTrungThongTinHrmAsync();

            return(Ok(result));
        }