public IActionResult DeleteCilentAccount(string id) { try { if (_accountsServices.DeleteClientAccount(id)) { return(NoContent()); } return(NotFound("Client account with id not found")); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }