public async Task <IActionResult> GetAllAuthorities() { try { var result = await _clanService.GetMembersAsync(); if (!result.Any()) { return(NotFound()); } return(Ok(result)); } catch (Exception) { return(BadRequest(new Exception("Something went wrong while processing the request."))); } }