예제 #1
0
        // GET: Events/Details/5
        public IActionResult Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var @event = _eventMapper.Find(id.Value);

            if (@event == null)
            {
                return(NotFound());
            }
            return(View(new EventDetailEditViewModel(@event)));
        }