public IActionResult Update(Ban ban) { if (ban != null) { banService.Update(ban); return(Ok()); } return(BadRequest()); }