Esempio n. 1
0
        private void SetMemberStatus()
        {
            var        memberStatus = _memberStatusService.GetAll().ToList();
            SelectList selectList   = new SelectList(memberStatus, "ID", "Description");

            ViewBag.memberStatus = selectList;
        }
Esempio n. 2
0
        // GET: Admin/MemberStatus
        public ActionResult Index()
        {
            var memberStatuses = _memberStatusService.GetAll().ToList();

            var model = AutoMapper.Mapper.Map <List <MemberStatusViewModel> >(memberStatuses);

            return(View(model));
        }