public JsonResult GetMembership()
        {
            string userid         = HttpContext.Session.GetString("UserID");
            var    jsonSerialiser = JsonConvert.SerializeObject(_membership.GetMembership(userid));

            return(Json(jsonSerialiser));
        }
Beispiel #2
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            if (string.IsNullOrEmpty(HttpContext.Session.GetString("UserName")))
            {
                TempData["msg"] = "<script>ModalPopupsAlert('Loyalty','  Session Expired! Login Again... ');</script>";
                return(RedirectToAction("Login", "User"));
            }
            string userid = HttpContext.Session.GetString("UserID");

            return(View(_membership.GetMembership(userid)));
        }