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")); }
public ActionResult BanIP([FromBody] SingleString val) { _banService.BanIP(val.String); return(NoContent()); }