Пример #1
0
        public ActionResult List(FormCollection fc)
        {
            string action   = fc["hfAction"];
            string userName = fc["hfUserName"];

            if (action.Equals("delete", StringComparison.OrdinalIgnoreCase))
            {
                //删除
                MemberService.DeleteAdminMember(userName);
            }
            if (action.Equals("add", StringComparison.OrdinalIgnoreCase))
            {
                //add
                MemberService.AddAdminMember(userName);
            }
            if (action.Equals("search", StringComparison.OrdinalIgnoreCase))
            {
                var searchList = MemberService.AdminSearchList(userName);
                ViewBag.SearchList = searchList;
            }

            var adminList = MemberService.AdminMemberList();

            ViewBag.AdminList = adminList;

            return(View());
        }
Пример #2
0
        //
        // GET: /Member/Admin/

        public ActionResult List()
        {
            var adminList = MemberService.AdminMemberList();

            ViewBag.AdminList = adminList;
            return(View());
        }