public string FormatPreviewForIPhone(NewsPreview article, string htmlFormat, string errorFormat)
        {
            string formattedArticle = String.Empty;
            if (article != null)
            {
                formattedArticle = htmlFormat.Replace("[ARTICLE_HEADER]", article.Subject);
                formattedArticle = formattedArticle.Replace("[ARTICLE_TITLE]", article.DateTime.ToString("MMMMM dd, yyyy"));
                formattedArticle = formattedArticle.Replace("[ARTICLE_CONTENT]", article.Content);
            }
            else
            {
                formattedArticle = errorFormat;
            }

            return formattedArticle;
        }
 partial void DeleteNewsPreview(NewsPreview instance);
 partial void UpdateNewsPreview(NewsPreview instance);
 partial void InsertNewsPreview(NewsPreview instance);
        public int InsertPreview(string subject, string content )
        {
            NewsPreview preview = new NewsPreview();
            preview.DateTime = DateTime.Now;
            preview.Subject = subject;
            preview.Content = content;

            db.NewsPreviews.InsertOnSubmit(preview);
            db.SubmitChanges();

            return preview.NewsID;
        }