Ejemplo n.º 1
0
        public void PinNews(string categoryId, string newsId)
        {
            var pn = new PinNews
            {
                CategoryId = categoryId,
                NewsItemId = newsId,
                Index      = GetMaximumIndexForCategory(categoryId)
            };

            PinNews(pn);
        }
Ejemplo n.º 2
0
 public void UnpinNews(PinNews pinNews)
 {
     _newsRepository.Delete(pinNews);
 }
Ejemplo n.º 3
0
 public void PinNews(PinNews pinNews)
 {
     _newsRepository.Add(pinNews);
 }