public IActionResult GetDashboardMenu(int UserId)
        {
            var response = _callCenter.GetDashboardMenu(UserId);

            if (response.isSuccess == false)
            {
                return(null);
            }
            return(Ok(response));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            string userId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            GetDashboardMenuResponse response = _iCallCenterService.GetDashboardMenu(Convert.ToInt32(userId));

            ViewBag.UserName = _httpContextAccessor.HttpContext.Request.Cookies["UserName"];
            ViewBag.UrlPath  = Globals.URLPath;
            if (response != null)
            {
                return(View(response));
            }
            else
            {
                return(View());
            }
        }