示例#1
0
        public ActionResult <object> GetEmailIPBan()
        {
            var emails    = _banService.GetEmailBans();
            var ips       = _banService.GetIPBans();
            var container = new { emails, ips };

            return(container);
        }
 public ViewResult Ban()
 {
     ViewBag.EmailList = _banService.GetEmailBans();
     ViewBag.IPList    = _banService.GetIPBans();
     return(View());
 }