If I have a method that returns something, like
public DataTable ReturnSomething() { try { //logic here return ds.Tables[0]; } catch (Ex
You can do it like the sample code below.
public DataTable ReturnSomething(out string OutputDesc) { try { //logic here OutputDesc = string.Format("Your Successful Message Here..."); return ds.Tables[0]; } catch (Exception e) { OutputDesc =e.Message; return null; } }