public ActionResult Clear() { string result = null; try { _renderer.Clear(); } catch (ArgumentException ex) { result = ex.Message; } if (result == null) { return(Accepted()); } else { return(BadRequest(result)); } }