public async Task <IActionResult> GetBan(int id) { var result = await _banService.GetBanAsync(id); if (result == null) { return(NotFound("Invalid Ban ID")); } return(Ok(result)); }
public async Task <IActionResult> GetBan(int id) { var result = await _banService.GetBanAsync(id); if (result == null) { return(NotFound("Invalid Ban ID")); } return(Ok(result)); }