private static int importToTemp(SpiderArticle art, SpiderImport item, ContentSection section, ContentApp app) { ContentTempPost post = new ContentTempPost(); post.Creator = item.Creator; post.OwnerId = app.OwnerId; post.OwnerType = app.OwnerType; post.AppId = app.Id; post.SectionId = section.Id; post.Title = art.Title; post.SourceLink = art.Url; post.Content = art.Body; post.insert(); return(post.Id); }
public Result Insert(ContentTempPost post) { return(post.insert()); }
private static int importToTemp( SpiderArticle art, SpiderImport item, ContentSection section, ContentApp app ) { ContentTempPost post = new ContentTempPost(); post.Creator = item.Creator; post.OwnerId = app.OwnerId; post.OwnerType = app.OwnerType; post.AppId = app.Id; post.SectionId = section.Id; post.Title = art.Title; post.SourceLink = art.Url; post.Content = art.Body; post.insert(); return post.Id; }
public Result Insert( ContentTempPost post ) { return post.insert(); }