public ActionResult AddNewShape(JObject shapeDto) { var success = true; var message = String.Empty; var shape = GetShapeFromJObject(shapeDto); try { } catch (Exception e) { success = false; message = e.ToString(); } return this.Direct(new { success, data = shape, message }); }