Exemplo n.º 1
0
        public int DownVoteContent(ContentEntity content, UserEntity user)
        {
            var temp = contentRepository.DownVote(content.ToDalContent(), user.ToDalUser());

            uow.Commit();
            return(temp);
        }
Exemplo n.º 2
0
 public ContentEntity Create(ContentEntity content)
 {
     if (content.UrlToContent.Contains("youtube.com"))
     {
         content.UrlToContent = GetYouTubeID(content.UrlToContent);
     }
     var temp = contentRepository.Create(content.ToDalContent());
     uow.Commit();
     Lucene.LuceneSearch.AddUpdateLuceneIndex(content);
     return temp.ToBllContent();
 }
Exemplo n.º 3
0
        public ContentEntity Create(ContentEntity content)
        {
            if (content.UrlToContent.Contains("youtube.com"))
            {
                content.UrlToContent = GetYouTubeID(content.UrlToContent);
            }
            var temp = contentRepository.Create(content.ToDalContent());

            uow.Commit();
            Lucene.LuceneSearch.AddUpdateLuceneIndex(content);
            return(temp.ToBllContent());
        }
Exemplo n.º 4
0
 public int DownVoteContent(ContentEntity content, UserEntity user)
 {
     var temp = contentRepository.DownVote(content.ToDalContent(), user.ToDalUser());
     uow.Commit();
     return temp;
 }
Exemplo n.º 5
0
 public void Update(ContentEntity content)
 {
     contentRepository.Update(content.ToDalContent());
     uow.Commit();
     Lucene.LuceneSearch.AddUpdateLuceneIndex(content);
 }
Exemplo n.º 6
0
 public void Delete(ContentEntity content)
 {
     contentRepository.Delete(content.ToDalContent());
     uow.Commit();
     Lucene.LuceneSearch.ClearLuceneIndexRecord(content.Id);
 }
Exemplo n.º 7
0
 public void Update(ContentEntity content)
 {
     contentRepository.Update(content.ToDalContent());
     uow.Commit();
     Lucene.LuceneSearch.AddUpdateLuceneIndex(content);
 }
Exemplo n.º 8
0
 public void Delete(ContentEntity content)
 {
     contentRepository.Delete(content.ToDalContent());
     uow.Commit();
     Lucene.LuceneSearch.ClearLuceneIndexRecord(content.Id);
 }