private bool Create() { int newID = -1; this.itemGuid = Guid.NewGuid(); this.createdDate = DateTime.UtcNow; this.lastModUtc = this.createdDate; newID = DBRssFeed.AddRssFeed( this.itemGuid, this.moduleGuid, this.userGuid, this.moduleID, this.userID, this.author, this.url, this.rssUrl, this.createdDate, this.imageUrl, this.feedType, this.publishByDefault, this.sortRank); this.itemID = newID; return(newID > -1); }
private bool Create() { int newID = 0; this.itemGuid = Guid.NewGuid(); this.createdDate = DateTime.UtcNow; this.lastModUtc = this.createdDate; newID = DBRssFeed.AddRssFeed( this.itemGuid, this.moduleGuid, this.userGuid, this.moduleID, this.userID, this.author, this.url, this.rssUrl, this.createdDate); this.itemID = newID; // TODO: move to UI //RSSFeed.ClearCache(this.moduleID); return(newID > 0); }