public bool RemoveDownloadInfo(string chapterId)
{
if (String.IsNullOrEmpty(chapterId))
throw new ArgumentException("Chapter id must not be null or empty.", "chapterId");
const string sql = @"DELETE FROM Chapters WHERE ChapterId=@ChapterId";
using (var connection = GetConnection())
using (var command = GetTextCommand(sql))
{
command.Parameters.AddWithValue("@ChapterId", chapterId);
return ExecuteNonQuery(command, connection) > 0;
}
}