public int DeleteUser(int userId) { const string DeleteUser = "******"; var connection = new SqlConnection(); var parameterList = new List <SqlParameter>(); parameterList.Add(new SqlParameter("@Age", 38)); parameterList.Add(new SqlParameter("@RecordCount", System.Data.SqlDbType.Int, 0, System.Data.ParameterDirection.Output, true, 1, 1, string.Empty, DataRowVersion.Default, null)); //Sents SP name, Connection Object, and SqlParameter list and gets back the affected record count. var result = DBUtility.DeleteRecord(DeleteUser, connection, parameterList); connection.Close(); return(result); }