/// <summary> /// /// </summary> /// <returns>int</returns> public static int usp_Service_Init() { SqlCommand cmd = DC.NewCmd_usp_Service_Init(); SQLHelper.ExecuteNonQuery(cmd); string s = cmd.Parameters["RETURN_VALUE"].Value.ToString(); if (string.IsNullOrEmpty(s)) { return(0); } return(int.Parse(s)); }
/// <summary> /// /// </summary> /// <returns>int</returns> public static int usp_Service_Init(DI.usp_Service_InitParameters p) { SqlCommand cmd = DC.NewCmd_usp_Service_Init(p); SQLHelper.ExecuteNonQuery(cmd); string s = cmd.Parameters["RETURN_VALUE"].Value.ToString(); if (string.IsNullOrEmpty(s)) { p.SetReturnValue(0); return(0); } else { p.SetReturnValue(int.Parse(s)); return(p._ReturnValue); } }