public JsonObject DeleteInfoSection(long infoSectionId) { var retMessage = new JsonObject(); string message; bool success = DataInfoList.DeleteLtdInfoSection(infoSectionId, out message); if (success) { retMessage.Put("message", "Successfully Deleted Info Section"); } else { if (message.Trim().Length == 0) { message = "Error in Deleting Section"; } retMessage.Put("error", message); } return(retMessage); }