public IActionResult Delete(int id)
        {
            if (id <= 0)
            {
                return(BadRequest());
            }

            var localizedProperty = _localizedPropertyService.FirstOrDefault(x => x.Id == id);

            _localizedPropertyService.Delete(localizedProperty);

            VerboseReporter.ReportSuccess("Xóa ngôn ngữ thành công", "delete");
            return(RespondSuccess());
        }
        public IActionResult Delete(int id)
        {
            if (id < 0)
            {
                return(RespondFailure());
            }
            var article = _newsItemService.FirstOrDefault(x => x.Id == id,
                                                          x => x.NewsItemCategories,
                                                          x => x.NewsItemTags);

            if (article == null)
            {
                return(RespondFailure());
            }

            _newsItemService.Delete(article);

            _localizedPropertyService.Delete(x => x.EntityId == article.Id && x.LocaleKeyGroup == "NewsItem");

            VerboseReporter.ReportSuccess("Xóa tin tức thành công", "delete");
            return(RespondSuccess());
        }