public void PinNews(string categoryId, string newsId) { var pn = new PinNews { CategoryId = categoryId, NewsItemId = newsId, Index = GetMaximumIndexForCategory(categoryId) }; PinNews(pn); }
public void UnpinNews(PinNews pinNews) { _newsRepository.Delete(pinNews); }
public void PinNews(PinNews pinNews) { _newsRepository.Add(pinNews); }