Beispiel #1
0
        // GET: Faqs/Details/5
        public ActionResult Details(int id)
        {
            if (!_repo.isExists(id))
            {
                return(NotFound());
            }
            var faq   = _repo.FindById(id);
            var model = _mapper.Map <FaqViewModel>(faq);

            return(View(model));
        }