public IActionResult Edit(int?id, News news)
        {
            if (!ModelState.IsValid)
            {
                return(View(news));
            }

            if (id == null)
            {
                return(StatusCode((int)HttpStatusCode.BadRequest));
            }

            var found = _newsRepository.Find(x => x.Id == id).FirstOrDefault();

            if (found == null)
            {
                return(StatusCode((int)HttpStatusCode.NotFound));
            }

            found.Content = news.Content;
            _newsRepository.CommitChanges();

            return(RedirectToAction(MethodNames.INDEX));
        }