Example #1
0
        public async Task <IActionResult> Index()
        {
            //if (HttpContext.User?.Identity?.IsAuthenticated == true)
            //{
            //    return RedirectToAction(nameof(Account));
            //}
            //else
            //{
            //    return View();
            //}

            var dialplan = await _sipDialPlanManager.LoadDialPlan();

            return(View(nameof(Index), dialplan.DialPlanScript));
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var dialplan = await _sipDialPlanManager.LoadDialPlan();

            return(View(nameof(Index), dialplan.DialPlanScript));
        }