public ActionResult Edit(int?id)
        {
            ViewBag.Layouts = _venueService.GetLayouts().ToList();
            if (id == null)
            {
                return(View(new EditEventViewModel()));
            }

            var eventDto = _eventService.GetEvent(id.Value);

            return(View(_mapper.Map <EditEventViewModel>(eventDto)));
        }
예제 #2
0
 public ActionResult EditLayouts()
 {
     return(View(_venueService.GetLayouts()));
 }