public async Task <IActionResult> GetAllClans() { try { var result = await _clanService.GetClansAsync(); if (result == null) { return(BadRequest()); } if (!result.Any()) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest(new Exception("Something went wrong while processing the request.") { Source = "Attempting to get clan information." })); } }