public async Task <ActionResult> BanIP([FromBody] SingleString val)
        {
            await _banService.BanIP(val.String);

            return(NoContent());
        }
 public RedirectToRouteResult BanIP(string ip)
 {
     _banService.BanIP(ip);
     return(RedirectToAction("Ban"));
 }
Пример #3
0
 public ActionResult BanIP([FromBody] SingleString val)
 {
     _banService.BanIP(val.String);
     return(NoContent());
 }