Beispiel #1
0
        public IActionResult Index()
        {
            ViewBag.UrlPath = Globals.URLPath;
            string userId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];

            GetDashboardMenuResponse response = _iPP_OTService.GetPPMenu(Convert.ToInt32(userId));

            ViewBag.UserName = _httpContextAccessor.HttpContext.Request.Cookies["UserName"];

            ViewBag.UserId = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];
            if (response != null)
            {
                return(View(response));
            }
            else
            {
                return(View());
            }
        }
        public IActionResult GetPPMenu(int UserId)
        {
            var response = _pp_otService.GetPPMenu(UserId);

            if (response.isSuccess == false)
            {
                return(null);
            }
            return(Ok(response));
        }