Пример #1
0
        public ViewResult About()
        {
            var model = newRepository.GetAboutNew();

            if (model != null)
            {
                return(View(model));
            }
            else
            {
                return(View("NotFound"));
            }
        }
Пример #2
0
        public ActionResult About()
        {
            var model = newRepository.GetAboutNew();

            if (model != null)
            {
                return(View(model));
            }
            else
            {
                return(PartialView("404"));
            }
        }