Example #1
0
        public IActionResult Ban(int id)
        {
            var model = _iUserBLL.GetUserById(id);

            if(!model.IsBanned)
            {
                _iUserBLL.Ban(id);
            }

            return RedirectToAction("Items");
        }