public ActionResult EditMembershipDetails(int id)
        {
            var profileData = this.Session["UserProfile"] as UserSession;

            if (profileData == null)
            {
                return(RedirectToAction("Index", "Home"));
            }

            MembershipRepository MemshipRepo = new MembershipRepository();

            return(View(MemshipRepo.GetAllMembership().Find(Memp => Memp.MembershipId == id)));
        }
        public ActionResult GetAllMembershipDetails()
        {
            var profileData = Session["UserProfile"] as UserSession;

            if (profileData == null)
            {
                return(RedirectToAction("Index", "Home"));
            }

            MembershipRepository MemshipRepo = new MembershipRepository();

            ModelState.Clear();
            return(View(MemshipRepo.GetAllMembership()));
        }