public string SaveNamesList([FromBody] DBConnectionTesting data) { try { string Value = null; if (data != null) { SendData sendData = new SendData(); Value = sendData.CallDBToSend(data); } else { System.Diagnostics.Debug.WriteLine("************Data is null*************"); } return(Value); } catch (Exception e) { System.Diagnostics.Debug.WriteLine("Controller Failed"); throw e; } }