Beispiel #1
0
        public IActionResult DashboardAdmin() // function to count total approved/pending/suspended account
        {
            var account = _dataAccessProvider.AdminDashboard();

            return(Ok(new
            {
                approvedAccount = account.approvedAccount,
                pendingAccount = account.pendingAccount,
                suspendedAccount = account.suspendedAccount
            }));;
        }