Exemple #1
0
        string INewsService.CreateNews(string title, string author, string site, string language, string imgUrl, string contents)
        {
            var idNewNews = _newsRepository.AddNews(new News(title, author, site, language, imgUrl, contents));

            CheckAddition(idNewNews);
            _subscribeService.AddedNewNews(idNewNews);
            return(idNewNews);
        }