Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arrayList.Add(new SqlParameter
- {
- ParameterName = "@ID",
- Direction = ParameterDirection.Output,
- SqlDbType = SqlDbType.Int
- });
- int result;
- try
- {
- base.ExecuteNonQuery("core_sp_save_customFieldModule", arrayList);
- result = (int)((SqlParameter)arrayList[arrayList.Count - 1]).Value;
- }
- catch (SqlException ex)
- {
- if (ex.Number != 2627)
- {
- throw ex;
- }
- result = -1;
- }
- finally
- {
- }
- return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement