Пример #1
0
        public async Task <bool> Save(CreateNewsCommand request)
        {
            Log.ForContext <CreateNewsCommandHandler>()
            .Information("CreateNewsCommandRequest Model : {@request}", JsonSerializer.Serialize(request));

            News news = new News(request.AgencyCode, request.NewsContent, true);

            news.CreateNewsMessage();

            bool result = await _newsRepository.Save(news);

            return(result);
        }