예제 #1
0
        public ViewModelNewsItem GetNewsItem(int clientId, int newsId)
        {
            var raw = _newsRepository.FindBy(o => !o.IsDeleted && o.NewsId == newsId && o.ClientId == clientId);

            var viewModelNewsItem = new ViewModelNewsItem();

            viewModelNewsItem.InjectFrom <CloneInjection>(raw);

            return(viewModelNewsItem);
        }