Beispiel #1
0
        public IActionResult Edit(string id)
        {
            if (string.IsNullOrEmpty(HttpContext.Session.GetString("UserName")))
            {
                TempData["msg"] = "<script>ModalPopupsAlert('Loyalty','  Session Expired! Login Again... ');</script>";
                return(RedirectToAction("Login", "User"));
            }
            List <Membership> _memship = _membership.GetMembershipbyID(id);

            return(View(_memship[0]));
        }
        public JsonResult GetMemberbyID(Membership memship)
        {
            var jsonSerialiser = JsonConvert.SerializeObject(_membership.GetMembershipbyID(memship.MembershipID));

            return(Json(jsonSerialiser));
        }