public void AddArticle(ContentRegistrationPM contentPresentationModel, IEnumerable <string> tags) { var content = contentPresentationModel.GetContent(); content.Type = ContentType.Article; content.CultureLcid = CultureInfo.GetCultureInfo("fa-IR").LCID; content.Text = HtmlParser.Parse(content.Text); content.Text = HtmlMinifier.MinifyHtml(content.Text); ArticleBiz.AddContent(content, tags); UnitOfWork.SaveChanges(); contentPresentationModel.Id = content.Id; }