Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            MembersData MemRepo = new MembersData();
            MemberModel mem     = MembersData.MemberDetails(id);

            if (mem != null)
            {
                mem.ListyearOfMembership = GetYearofMembership();
                mem.StatusList           = MemRepo.GetStatusList();
                mem.PositionList         = MemRepo.GetPositionList();
                mem.CLPList        = GetCLPNumList();
                mem.ChapList       = MemRepo.GetChapterList();
                mem.AccessTypeList = MemRepo.GetAcccessTypeList();
                mem.SponsorList    = MemRepo.GetSponsorList();
            }
            return(View(mem));

            //return Json(new { status = true, msg = "Success", data = mem }, JsonRequestBehavior.AllowGet);
        }