• Try the following code, it should get you started:

    SqlCommand cmd = new SqlCommand("usp_Table_Action");

    cmd.CommandType = CommandType.StoredProcedure;

    SqlParameter param = new SqlParameter("@ReturnCode", SqlDbType.Int);

    param.Direction = ParameterDirection.ReturnValue;

    cmd.Parameters.Add(param);