Example #1
0
        public IActionResult BanUser(string id)
        {
            var banned = _banService.BanUser(id);

            if (!banned)
            {
                return(NotFound());
            }

            return(RedirectToAction(nameof(AllUsers)));
        }