Ejemplo n.º 1
0
        public IActionResult TourDetail(int?id)
        {
            if (id == null)
            {
                return(View("/Views/Shared/Error.cshtml"));
            }
            var model = _tourService.TourDetail(id);

            if (model == null)
            {
                return(null);
            }
            return(View(model));
        }